<p>Try:<br>
rename 's/.*-.*-.*-//' *.gsm</p>
<div class="gmail_quote">On Nov 27, 2012 11:43 PM, "Rob Jefferis" <<a href="mailto:rob@letchmore.co.uk">rob@letchmore.co.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hi guys, I have a load of files in a directory with file names similar to below</div>
<div><br>
</div>
<div>OUT119-20120702-084956-1341215396.177198.gsm</div>
<div><br>
</div>
<div>It is basically OUT(dialingextensionnumber)-DATE-TIME-UNIQUEID.gsm</div>
<div><br>
</div>
<div>I would like to somehow bulk rename all the files in this folder to strip everything other than the uniqueid.gsm bit</div>
<div><br>
</div>
<div>So in this case I want the file to end up called </div>
<div><br>
</div>
<div>1341215396.177198.gsm</div>
<div><br>
</div>
<div><br>
</div>
<div>Is there a quick way to do this?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Rob</div>
</div>

<br>_______________________________________________<br>
Watford mailing list<br>
<a href="mailto:Watford@mailman.lug.org.uk">Watford@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/watford" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/watford</a><br>
<br></blockquote></div>