01 / 06
> wipes. So there is >>
In the last lesson you saw that > overwrites in silence. That makes it useless for a file you want to pile things onto, like a diary or a log.
The way to write that is >>. Just two arrows instead of one.
echo Jan 20 ramen >> diary.txtWhat is already there stays, and the new line goes on the bottom.
~ $ cat diary.txtJan 5 startedJan 8 kept going~ $ echo Jan 20 ramen >> diary.txt~ $ cat diary.txtJan 5 startedJan 8 kept goingJan 20 ramen