Append date to filename in linux
Info/Summary With bash scripting you can enclose commands in back ticks or parantheses. This works great for labling files, the following wil create a file name with the date appended to it. Methods Backticks – $ echo myfilename-“`date +”%d-%m-%Y”`” $(parantheses) – : $ echo myfilename-$(date +”%d-%m-%Y”) Example Usage: echo “Hello World” > “/tmp/hello-$(date +”%d-%m-%Y”).txt” (creates … Read more