Never been to CodeSnippets 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 (or not, you can keep them private!)

About this user

Perl / ImageMagick one-liner to generate a series of numbered and colored images

// Perl / ImageMagick one-liner to generate a series of numbered and colored images

perl -e 'for (0..5) {printf "convert -size 600x450 xc:\"hsl(270,60,%d)\" -fill white -pointsize 72 -gravity center -draw \"text 0,0 \\\"%d\\\"\" test%d-L.jpg\n", 70-(10*$_), $_, $_}'

Bash one-liner to rename files

// bash one-liner for renaming files

for f in `find . -name '*replaceme.jpg'` ; do mv $f ${f/replaceme/withme}; done