How to go from "this_" to "this" ?
March 23, 2006 8:59 AM
Subscribe
Batch unzipping and file renaming on UNIX or OS X? All_ my_ files_ look_ like_ this!_.gz
I recently lost all files on one of my domains, but was able to recover everything from my server's backup. However, all the files now have an underscore appended to the end of the filename (index.html is now index.html_, for example). All the files and all the folders are like this.
And some of them are gzipped, so some files are now filename.cgi_.gz.
What's the quickest, easiest way to unzip everything and remove the _ from the end of the files, including those within nested folders? Is there a shell command I can use? (or a way to do this using Automator on OS X if I copy everything from my server to my computer?)
posted by Robot Johnny to computers & internet (25 comments total)
posted by Malor at 9:01 AM on March 23, 2006