#!/bin/bash
#bash script to shift through the arguments one by one using a while loop
if [ "$#" -le 0 ]; then
echo "You need to enter at least 1 argument"
fi
while (( $# > 0 ))
do
echo "parsing the arguments $*"
echo $1
shift
done
#!/bin/bash
#bash script to shift through the arguments one by one using a while loop
if [ "$#" -le 0 ]; then
echo "You need to enter at least 1 argument"
fi
while (( $# > 0 ))
do
echo "parsing the arguments $*"
echo $1
shift
done