Wednesday 18 March 2020

shell script

$#  Stores the number of command-line arguments that were passed to the shell program

$? Stores the exit value of the last command that was executed. 

$@ treats each quoted arguments as separate arguments .

 $* will consider the entire set of positional parameters as a single string.


Featured post

Postgres commads

 [oracle@Tesdb ~]$ systemctl status postgresql-15 ● postgresql-15.service - PostgreSQL 15 database server    Loaded: loaded (/usr/lib/system...