Mark Carroll grabbed a keyboard and wrote: > Sharon Kimble <[email protected]> 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
Ooh, yea, that looks like it would do it, way better than what I came up
with if it doesn't require a specific number of fields. I'm a little
vague on my sed syntax, though. Could you break that down and explain
how that's doing what it does?
--Dave
smime.p7s
Description: S/MIME Cryptographic Signature

