Unix/Linux Go Back    



Adding date and time to file name

Shell Programming and Scripting




Kindly Note - This is a Single User Post by Forum Member michaelrozar17 Regarding:
Adding date and time to file name.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 11-15-2010   -   Original Discussion by cc_at_work
michaelrozar17's Unix or Linux Image
michaelrozar17 michaelrozar17 is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 22 September 2016, 3:57 AM EDT
Location: IN
Posts: 894
Thanks: 15
Thanked 183 Times in 174 Posts
You could use (assuming this shell script is at the path where you need to add the date and time )
Code:
for i in *

or to be more precise
Code:
for i in *.*

As the former one would change the name of the sub-directory if its present in the current working dir.