Search This Blog

Monday, October 2, 2023

Shell script 18

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

What is the sanity checks you have done for STA?

 Sanity checks for STA: Linking Checks: We need to check., is there any missing modules or missing pins in a library. this is done by link c...