View Single Post
Old May 11th, 2005, 10:39 AM   #3
gawi
Newbie
 
Join Date: May 2005
Posts: 3
Rep Power: 0 gawi is on a distinguished road
For the first script:

echo "$9 $8 $7 $6 $5 $4 $3 $2 $1"
This is not universal and too simple way. I need a script which writes its arguments in the other way round but i don't know how many will be those arguments. That way you wrote me works only with 1 to 9 arguments.

For the second: This is what i looked for thanx a lot. I didn't know that commend:

((=$b))

I even wrote simpler way (also working)

a=`cat file`
b=`echo -n $a | tr ' ' '+'`
((c=$b))
echo $c

THANX a lot and if you could help me with the first script

gawi is offline   Reply With Quote