deleted
Test the no of arguments passed with the shell script while running it.
if [ $# -lt 1 ]; then
echo "Usage: name string"
echo "Please enter a string with the script"
exit 0
else
grep $1 xcv | sort -n -k 2
fi
cheers,
Devaraj Takhellambam
deleted
Test the no of arguments passed with the shell script while running it.
if [ $# -lt 1 ]; then
echo "Usage: name string"
echo "Please enter a string with the script"
exit 0
else
grep $1 xcv | sort -n -k 2
fi
cheers,
Devaraj Takhellambam