Whats the use of () -parentheses
Whats the use of () -parentheses
In the below ex: a=($*) what it means
Shell script to print the command line arguments in reverse order
if [ $# -eq 0 ]
then
echo -e "\nNo arguments entered\n"
else
a=($*)
echo "arguments are"
echo $*
let x=$#
echo "arguments in reverse order are : "
while [ $x -ne -1 ]
do
echo -n " ${a[$x]}"
let x=x-1
done
fi
|