/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash echo \$0=$0 # argv[0] echo \$1=$1 # argv[1] echo \$#=$# # argc # if argv[0] does not exist, print message after '?' echo ${1?"Usage: $0 ARGUMENT"}