Quantcast
Channel: Appending a current date from a variable to a filename - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 6

Answer by Atul Rokade for Appending a current date from a variable to a filename

$
0
0

You can rename file with time stamp appended to it

mv TheFile.log TheFile.log.`date +"%d-%m-%Y"`

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>