Article 5FE2G shell script to automate touch and rename

shell script to automate touch and rename

by
mattdawolf
from LinuxQuestions.org on (#5FE2G)
I have about 1000 files with YYYYMMDD_HHMM_nameoffile.extension

What is the best way to tell touch to take the values from the start of the filename, touch the file appropriately, and then trim 14 characters from the filename.latest?d=yIl2AUoC8zA latest?i=QnTJ7sTnYFU:61X4W9OuX7Q:F7zBnMy latest?i=QnTJ7sTnYFU:61X4W9OuX7Q:V_sGLiP latest?d=qj6IDK7rITs latest?i=QnTJ7sTnYFU:61X4W9OuX7Q:gIN9vFwQnTJ7sTnYFU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments