take it take Posted November 2, 2006 Share Posted November 2, 2006 I'd like to copy files with a specific filename format. Here's an example: picture1.jpg picture1.highlight.jpg picture1.thumb.jpg picture.sized.jpg picture2.jpg picture2.highlight.jpg picture2.thumb.jpg picture2.sized.jpg I only want the ones WITHOUT the "highlight", "thumb", and "sized", therefore, I only want picture1.jpg and picture2.jpg. If I issue a: cp *.jpg ../temp ALL the files ending with .jpg will be copied and I eventually have to delete the rest manually by: rm *.highlight.jpg rm *.sized.jpg rm *.thumb.jpg in the temp directory. Is there a nifty way to only grab the ones I want? BTW, that was a small example. I have to grab about 200-300 images in each directory x 50 directories. :?: Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.