LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2015, 01:15 AM   #16
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822

OK, if the mtime is a close enough approximation to creation time, use the stat command to format the value. As human readable it'll still be awkward to parse - if it was me I'd use "stat" to get mtime in seconds since epoch, then pass that to "date" to format as appropriate. Then construct the output file name.
For each file...
Hence a script ...

Sounds harder than it really is I suspect.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script to timestamp files with timestamp from directory eRJe Programming 4 11-13-2013 07:52 PM
LXer: Fancy winning a copy of the original Postal game for Linux? LXer Syndicated Linux News 0 05-01-2013 10:31 PM
find, grep and copy based on timestamp rootaccess Linux - General 14 03-20-2013 10:09 PM
How to copy, then delete original of whatever log(s) that would help debug crashes... BigSmellyMonkey Linux - Newbie 2 10-02-2011 08:36 AM
how to retain an original copy of mail in internet while fetching to Sendmail server deepugopi Linux - Server 0 06-26-2007 04:40 AM


All times are GMT -5. The time now is 02:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration