Sharon Kimble <boudic...@talktalk.net> writes: (snip) > '15_Minute_Drama_-_AM_Homes_-_This_Book_Will_Save_Your_Life_Episode_5_b00jdlb8_default.m4a' > > How can I lose the '_b00jdlb8_default' section please? It is always > in this format but with different letters and numbers in the section > before 'default'.
Perhaps something like, for i in *_????????_default\.m?? do mv "$i" "`echo $i | sed 's/.\{17\}\(.\{4\}\)$/\1/'`" done Hope that helps. -- Mark -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87fvnkyveh....@ixod.org