[Watford] Bulk Rename Files

Steve Horsley steve.horsley at gmail.com
Tue Nov 27 23:46:02 UTC 2012


Try:
rename 's/.*-.*-.*-//' *.gsm
On Nov 27, 2012 11:43 PM, "Rob Jefferis" <rob at letchmore.co.uk> wrote:

>  Hi guys, I have a load of files in a directory with file names similar
> to below
>
>  OUT119-20120702-084956-1341215396.177198.gsm
>
>  It is basically OUT(dialingextensionnumber)-DATE-TIME-UNIQUEID.gsm
>
>  I would like to somehow bulk rename all the files in this folder to
> strip everything other than the uniqueid.gsm bit
>
>  So in this case I want the file to end up called
>
>  1341215396.177198.gsm
>
>
>  Is there a quick way to do this?
>
>  Thanks
>
>  Rob
>
> _______________________________________________
> Watford mailing list
> Watford at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/watford
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/watford/attachments/20121127/41fc51ec/attachment.html>


More information about the Watford mailing list