.
Home > Linux, Tech > Create file name equal to current date / time in Linux

Create file name equal to current date / time in Linux

September 29th, 2009 Leave a comment Go to comments

Linux command to create file name equal to current date / time :

example create folder:

mkdir FOLDERNAME_`date +%d-%m-%Y_%H-%M-%S`

example create file with ping result (one file / hour – command add all lines to the end of the file)

ping -i 0.5 -s 1450 google.com -c 120 -w 500 -f >>ping-google.com_`date +%Y.%m.%d.%H`.txt &

Categories: Linux, Tech Tags:
  1. No comments yet.
  1. No trackbacks yet.

GoCache - ByREV-Cache v1.0 - live served in : 0.712525 sec