Question: Usage of $*,$1,$#,$0,$@,$?
#!/usr/bin/bash
present_working_dir=`pwd`
echo "script name $present_working_dir/$0"
echo "1st argument $1"
echo "2nd argument $2"
echo "Previous command is success or not if yes it will give 0: $?"
echo "$*"
echo "total number of arguments $#"
echo "Arguments names $@"
No comments:
Post a Comment