Linux stuff

12 thoughts
last posted Feb. 5, 2016, 10:37 a.m.

5 earlier thoughts

0

Just a quick one because I need this all the time but I keep forgetting it: How to append the current date to a filename.

touch abcd_`date +%F`
ls abcd*
> abcd_2015-09-17

or if you are using fish:

touch abcd_(date +%F)

6 later thoughts