Writing to Files: echo, > and >>

echo prints a line of text, > (read "into") sends it into a file and replaces whatever the file had, >> (read "add to") adds it to the end, and printf writes neat lines from a pattern.

Updated

Cheat sheet for the lesson Writing to Files: echo, > and >>: echo prints a line of text, > (read "into") sends it into a file and replaces whatever the file had, >> (read "add to") adds it to the end, and printf writes neat lines from a pattern.
Category
Bash
Level
Novice
Tags
echo, linux, printf, redirection, unix