How do I append a line of text to a file using "cat" or some other command?
Code:
mkdir ~/tmp
cat > ~/tmp/test
cat "This text to be written to file 'test'." >> test
cat "second line of text to be added" >> test
cat "emptyline" >> test
date >> test
ls -al >> test