Nobody deals with the really low-level stuff any more; I learned it from UNIX Gurus in the 90s. I was really lucky to have met some real experts, and was stupid not to have better understood the opportunity to pick their brains.
Write to a file
$ echo foo > file
Append to a file
$ echo foo >> file
Read from a file (1)
$ cat < fileRead from a file (2)
$ cat fileRead lines from a file
$ while read f > do > echo LINE: $f > done < file $
Posted by unixshell