On 25/2/18 1:03 am, bruce wrote:
Hi.

Have a bunch of files with the basic naming of:
ztcloud_nfs_parseztaa_1__WGS_7500_001__parse.dat
ztcloud_nfs_parseztaa_1__WGS_7500_002__parse.dat
etc..

I'd like to simply remove the 1st part ztcloud_nfs_parsezt from the
files, renaming the files to the rest of the filename..

Thought it should be simple using rename

rename 's/ztcloud_nfs_parseztaa/aa/' zt*.dat

However, this didn't work... so.. hmm..

How would you guys solve this?

SO has a bunch of different solns as well.

thanks...

Just some info on this,   rename 'ztcloud_nfs_parsezt' '' zt*.dat will remove the required first part from the file names.


regards,

Steve


_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to