Jump to content

Need help writing a shell script: modified date -> created date


johnieutah

Recommended Posts

Hey all.

 

I've accidentally messed up quite a few files with a windows tool that changed the modified date on some of my music. I'd like to write a little shell script that will read in a bunch of flac files recursively, and change the modified date to the created date of the file.

 

The files are in various levels of folder hierarchy, so would be great to specify the root folder and let it go off and do it's thing.

 

Any help appreciated as all the stuff I've found thus far hasn't worked :-(

Link to comment
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...