[Ilugc] [Help] Renaming files through bash shell scripts

  • From: shakthimaan@xxxxxxxxx (Shakthi Kannan)
  • Date: Wed, 28 Oct 2015 20:20:48 +0530

Hi,

--- On Wed, Oct 28, 2015 at 5:38 PM, Baskar Selvaraj
<baskar at linuxpert.in> wrote:
| Now the requirement is to remove the modules from the filenames and have
| only lectures in consecutive numerical order
|
| M1L1.mp4
| M1L2.mp4
| ...
\--

New requirements! This is not what you mentioned in your initial
e-mail (where it was M1L01.mp4, M1L02.mp4 etc).

---
| Then, the resulting file list should be as below (were M followed by 'n'
| value can be removed)
|
| L4.mp4 (here M2L1 should automatically get renamed to L4)
\--

Yet again, new requirements!

I'd suggest you spend some time learning a scripting language, like
Ruby, and hack the existing script to suit your needs.

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

Other related posts: