pipes
$ cat *.txt | sort | uniq > output.txt
- In this example, cat outputs all text files, which are sorted. All dupicates are than removed and
Example: $ somecommand | tee output.txt
- Prints output of a command to stdout and a file!
- Pipe to less for nice navigation.
0 comments:
Post a Comment