Redirecting Standard Output to a File

$ echo "FISH"
FISH
$ echo "FISH" > net.txt
$ cat net.txt
FISH
$ echo "CRAB" > net.txt
$ cat net.txt
CRAB
$ echo "BARNACLE" >> net.txt
$ cat net.txt
CRAB
BARNACLE
$ 

Redirecting Standard Input from a File

$ cat < bag.txt
Layer1 = cloth
Layer2 = strawberries
Layer3 = fish
Layer4 = chocolate
Layer5 = punch cards
$ cat < bag.txt > tin.txt
$ cat tin.txt
Layer1 = cloth
Layer2 = strawberries
Layer3 = fish
Layer4 = chocolate
Layer5 = punch cards                         
$ 
Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.