On Fri, 15 Nov 2019 11:51:40 AM Piers via luv-main wrote:

Hi,

I solved my somewhat similar problem with pyrenamer.

It may be exactly what is needed here too.

Petr Baum
_________________________________
> Hi there,
> 
> I have a bunch of files that I want to rename:
> 
> 
> 123.someword.doc > 123.doc
> 
> 456.someword.pdf > 456.pdf
> 
> The "someword" is consistent in all the files and they need to be
> renamed recursively.
> 
> Something like this but with a different regex:
> 
> # This is for a completely different file name structure
> 
> find . -name '123*.txt' -type f -exec bash -c 'mv "$1" "${1/\/123_//}"'
> -- {} \;
> 
> ...sorry regex is a shortfall of mine.
> 
> Thanks in advance.
> 
> Cheers
> 
> Piers
> 
> 
> _______________________________________________
> luv-main mailing list
> [email protected]
> https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main

-- 
<[email protected]>

Petr Baum, P.O.Box 2364, Rowville 3178
fax +61-3-97643342

This message was created in naturally virus-free operating system: Linux
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main

Reply via email to