Monday, August 29, 2011

Useful built-in variables in bash

In bash scripting there are extremely useful build-in variables which we must know.
Given below are some of them.

$#-Number of arguments passed to the script.
$?-Exit status of the last command executed.
$!-Pid of the last command executed.
$$-Pid of the script.

No comments:

Post a Comment