On Thu 14 Jul 2016 05:54:53 PM CDT, Terry Eck wrote:
It is really sad to get old. I use to know how to do this. I want to append a date (m-d-y) to a file.
The command should be something like the following using touch as and example:
touch temp[command involving date]
so the result is similar to "temp_07-15-16".
Thanks for any suggestions.
Terry
Hi If you use +\ to add formatting to the date command.... touch temp_`date +\%m-%d-%y` -- Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890) openSUSE Leap 42.1|GNOME 3.16.2|4.1.26-21-default up 4:15, 2 users, load average: 0.07, 0.12, 0.18 CPU AMD Athlon(tm) II X4 635 @ 2.90GHz | GPU Nvidia GeForce 8800 GT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org