Usage of $ sign in Bash
#!/bin/bash echo "The program $0 is now running" echo "The progress PID is $$" echo "The last progress PID is $$" echo "The number of parameter is $# " echo "The return code of last command is $?" echo "The first parameter is $1" echo "The second parameter is $2" echo "The parameters are: $*" echo "Again, the parameters are: $@"
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me, replace # with @
- Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here