On Sat, 2018-02-24 at 08:55 -0800, John Wendel wrote: > On 02/24/2018 08:38 AM, Patrick O'Callaghan wrote: > > On Sat, 2018-02-24 at 09:03 -0500, 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 > > > > Read the man page again. The pattern is just a text string, not a regex > > or sed-type command. > > > > poc > > _______________________________________________ > > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > > > > > There appears to be 2 different "rename" programs out in the world. The > Fedora rename uses a text string for the pattern, but on my Mint box the > pattern is a sed-like substitution. Confusing ? Since this is a Fedora list, that's the one I mean. Don't anything about the Mint one. There are also other things like krename etc. which are more flexible but harder to use (IMHO). poc _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx