To duplicate (backup) a file as filename.unixtimestamp use
cp myfilename{,.`date +%s`}
You can change the date format as per your preference. Below would duplicate it as filename.yyyymmdd
cp myfilename{,.`date +%Y%m%d`}
To duplicate (backup) a file as filename.unixtimestamp use
cp myfilename{,.`date +%s`}
You can change the date format as per your preference. Below would duplicate it as filename.yyyymmdd
cp myfilename{,.`date +%Y%m%d`}
Tags: duplicate files, timestamp
Posted in Unix | No Comments »
my two cents is proudly powered by
WordPress
Entries (RSS)
and Comments (RSS).