i am trying to write a script which it echos its script file name and the value of its odd arguments.
i got the echo filename part..but im not sure how to echo its odd arguements.
the output of script Good_script is a very good script
i have came up with code
until [ $i -gt $# ]
y=`echo "$i % 2" | bc`
if [ $y -eq 1 ]; then
i=`echo "$i + 1" | bc`
but right now, it only echos the filename and the numerical value
say if it was Good_script a b c d e
it would output