I am using the below command to find files which are greater than particular size and zip
it. How can I modify the below command to include the timestamp at the end of the file?
find . -type f -name "*querry_match*" -size +550000000c -exec gzip {} \;
Expectation,
Before zipping: querry_match_file1
After zipping: querry_match_file1.`date +"%m-%d-%Y-%H:%M:%S"`.z
querry_match_file1.09-24-2015-02:50:56.z
– Chittha Shetty Sep 25 '15 at 08:14find . -type f -name "*querry*" -size +55c -exec gzip "{}" \; -exec mv "{}.z" "{}
date +".%m-%d-%Y-%H:%M:%S.z"" \;