Shell procedures
Shell procedures
From Steve ParkerThe shell may be used to read and execute commands contained in a file. For example,
calls the shell to read commands from file. Such a file is called a command procedure or shell procedure. Arguments may be supplied with the call and are referred to in file using the positional parameters $1, $2, .... For example, if the file wg containssh file [ args ... ]
thenwho | grep $1
is equivalent tosh wg fred
who | grep fred
0 Comments:
Post a Comment
<< Home