It took a while but thanks you all of you I got it.
Code:
#!/bin/bash
j=1
LEFT="http://xxx.xxxxx.xxx/languages-pronunciations/de/alphabetically/"
HEX="\x"
NUM=65
while [ $j -le 10 ]; do
printf %x $NUM | cat > hexnum
hexnum=`cat hexnum`
LETTER=$HEX$hexnum
echo "Num= " $NUM " " $hexnum
echo -e "$LETTER" | cat
RIGHT="/page-1/"
URL="$LEFT$LETTER$RIGHT"
echo -e "$URL" | cat > url.txt
i=`cat url.txt`
echo $i
((NUM++))
((j++))
done
Here's the output
Code:
~$ test4
Num= 65 41
A
http://www.xxxxx.xxx/languages-pronunciations/de/alphabetically/A/page-1/
Num= 66 42
B
http://www.xxxxx.xxx/languages-pronunciations/de/alphabetically/B/page-1/
Num= 67 43
C
http://www.xxxxx.xxx/languages-pronunciations/de/alphabetically/C/page-1/
Num= 68 44
D
http://www.xxxxx.xxx/languages-pronunciations/de/alphabetically/D/page-1/
Num= 69 45
E
http://www.xxxxx.xxx/languages-pronunciations/de/alphabetically/E/page-1/
Num= 70 46
F
http://www.xxxxx.xxx/languages-pronunciations/de/alphabetically/F/page-1/
Num= 71 47
G
http://www.xxxx.xxx/languages-pronunciations/de/alphabetically/G/page-1/
Num= 72 48
H
http://www.xxxxx.xxx/languages-pronunciations/de/alphabetically/H/page-1/
Num= 73 49
I
http://www.xxxxx.xxx/languages-pronunciations/de/alphabetically/I/page-1/
Num= 74 4a
J
http://www.xxxxx.xxx/languages-pronunciations/de/alphabetically/J/page-1/
There's extra code and output that is there just for debugging purposes. It will be removed in the final version. I just did a run of 10 url's but it will now do what I want; they way I want.
Thanks to all for your kind assistance.
jdk