[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Losing '_b00jdlb8_default' from a files name?



On Sat 15 Feb 2014 at 19:38:24 +0000, Sharon Kimble wrote:

> I have quite a few programmes already converted so I also need to be
> able to use this ability on them too. I would welcome another script
> that could perform this please?

This is a proof of concept:

  A="15_Minute_Drama_-_AM_Homes_-_This_Book_Will_Save_Your_Life_Episode_5_b00jdlb8_default.m4a"
  B=$(echo $A | rev | cut --complement -d"_" -f1 | cut --complement -d"_" -f1 | rev).mp3
  echo $B

Someone will point out it uses half the output of your local power
station but it will only be employed once. For the future it is as well
to remember get-iplayer allows a file to be renamed to what you want it
to be.


Reply to: