fork download
  1. # file sh_1.file
  2. # For this program give an input like "This is a test case" i.e. 5 parameters
  3. echo we first get the file name
  4. echo $0 /* $0 yields this script file name */
  5. echo $#
Success #stdin #stdout 0.02s 5312KB
stdin
Standard input is empty
stdout
we first get the file name
prog.sh /* prog.sh yields this script file name */
0