...

/

Bash meta characters

Bash meta characters

We'll cover the following...

We can use special characters called metacharacters in a Bash that the shell interprets rather than passing to the command. See the examples below:

Symbol Example How it works?
< sort < filename.txt Get input for the command to the left from the file listed to the right of this symbol.
> echo "BASH" > filename.txt Send the output of the command on the left into the file named on the right of this symbol. If the file does not exist, create it. If it does exist, overwrite it (erase everything in it and put this output as the new
...