combining commands
TRANSCRIPT
-
8/8/2019 Combining Commands
1/1
COMBINING COMMANDS
So far we are executing commands one by one i.e the next command is entered whenprevious one has completed its execution. UNIX allows us to execute more than onecommand at terminal as :
$ wc array; ls [press Enter]12 12 97 arrayarray Desktop Documents logfile Music Pictures Public READMETemplatestypescript unix url.jpg Videos
The two or more commands are combined with the metacharacter semicolon(;).When shell sees semicolon, it executes each command seperately.
Copyright Sourabh Bhandari http://sourabhandari.in