1.

What Are The Special Variables Set By Bourne Shell For Command Line Arguments?

Answer»

The following table lists the special VARIABLES set by the Bourne shell for COMMAND line ARGUMENTS.

Special Variables: Holds

  • $0: Name of the Script from the command line
  • $1: FIRST Command-line argument
  • $2: Second Command-line argument
  • …..
  • …….
  • $9: Ninth Command line argument
  • $#: Number of Command line arguments
  • $*: All Command-line arguments, separated with spaces

The following table lists the special variables set by the Bourne shell for command line arguments.

Special Variables: Holds



Discussion

No Comment Found