Hi !
What I want to do is to split up an argument passed to a
bash-shellscript. I want to run the script like this:
<scriptname> arg1 arg2 arg3 <...>
With an *unknown* amount of arguments.
This is what my script looks like:
#!/bin/sh
# I want to echo all the parameters I pass this script. One after the other.
declare -i i=1
while [ $i -le $# ]
do
echo <what shall I put here ?>
i=i+1
done
echo $i counts from 1 to the number of arguments. How do I make it
echo the arguments one after the other ?
TNX Andreas
PS: Email would be appreciated.
--------------------------------------------------------------------------- Andreas Steffan * win: command not found ---------------------------------------------------------------------------