Đặng Thu Hà
New member
How do you read a command line argument in Unix?
Answer
Read Command-line Arguments in Shell Scripts
Answer
Read Command-line Arguments in Shell Scripts
- #!/bin/sh. echo “Script Name: $0” echo “First Parameter of the script is $1” echo “The second Parameter is $2” echo “The complete list of arguments is
[email protected]
” echo “Total Number of Parameters: $#” echo “The process ID is $$” echo “Exit code for the script: $?” - . / PositionalParameters .sh learning command line arguments.