Special Command Symbols
Redirection
Reads input from the file file.
Writes standard output to the file file; i.e., an old file with the same name will be overwritten.
Appends standard output to the file file; i.e., the information will be added at the end of the file file, if it already exists.
Writes standard error to the file file.
Writes standard output and error to the file file.
Example:
The program myprog
will read from the file inputfile
and write its standard output to outfile
and write error message to errorfile
.
Command execution
; Separates multiple commands on the command line; i.e., the semi-colon corresponds to pressing ENTER between commands.
is the same as
| Pipe symbol. Uses output from one command as input for the next command; i.e.,
is the same as
Typingrepeats a previous command line that starts string
.
The last line corresponds to executing echo $PATH again.
Quotation
' ' (Single quotes) Quotes the enclosed string exactly.
gives ${Program}_job$JobNr.out as output.
" " (Double quotes) Quotes the enclosed string after variable substitution.
gives myprog_job1.out as output
Author: (LUNARC)
Last Updated: 2022-10-05