Re: [Help] Renaming files through bash shell scripts
Arun Khan <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.ilugc |
|---|---|
| Message-ID | <CAHhM8gBfvmpN6xLe2d2uRfDSpPHUe4R-10zBmY-NwdmfBV9tdw@mail.gmail.com> |
On Wed, Oct 28, 2015 at 12:56 PM, Baskar Selvaraj <baskar-FaTCxNPFk8w/[email protected]> wrote: > Dear all, > > I am looking for a simplified solution for renaming files through shell scripts. > Dangerous, unless your file name string has an unique pattern. Otherwise, you might end up overwriting already renamed files! As the discussion shows it can be done in many ways! The perl purist would probably give you a one liner :) and there are others like bash, python and ruby (Shakti Kannan's solution). mmv (mass rename/move) comes to my mind -- details 'man mmv' Also this links provides some good bash examples <http://www.peteryu.ca/tutorials/shellscripting/batch_rename> that I found through uncle Google. The above maybe moot in your case but posting here for future reference, in case it comes up again. -- Arun Khan _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ILUGC Mailing List Guidelines: http://ilugc.in/mailinglist-guidelines