Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Complex file copy (See related posts)

find *.orig.jpg | perl -p -e 's/\n//; $x = $_; s/\.orig/\.large/; $_ = "cp " . $x . " " . $_ . "\n"'


Would have used the basename | xargs method covered here, but the filenames were odd.

You need to create an account or log in to post comments to this site.


Click here to browse all 4858 code snippets

Related Posts