Parameter description
1:$# indicates the number of incoming arguments executed by the script
2:$* indicates that the execute script passes in the argument list
3:$$ represents the Process ID
4:$@ indicates that the execute script passed in all parameters
5:$0 to execute script name
6:$1 represents the first parameter
7:$2 represents a second parameter
8:$? Indicates that script execution state 0 is normal, others indicate error experiments and results
#!/bin/sh
echo "Parm number is: $#"
echo "Parm list is: $*"
echo "All Parm are: $@"
echo "process is: $$"
echo "File name is: $"
echo "The" "the" the "the" is: $ "
echo "stat is: $?"
-----------------------------Implementation and Results------------------------------
Execution: Sh shelltest.sh "The" the "the" "The Parm" "The second Parm"
Parm number Is:2
Parm list is:the Parm second Parm
All Parm is:the parm second Parm
Process is:28669
File name is:shellTest.sh
The Parm is:the-A-parm
Stat is:0