linux

Not strictly just Linux, but meh. What you gonna do

  1. find ./ -name '*.html' -or -name '*.php' \
  2. -print0 | xargs -0 svn propset svn:keywords Id

edit: quick correction, thanks Lukas

  1. virt-install --name=mysql --ram=512 --vcpus=1 \
  2. --file=/dev/mapper/CC-xen--mysql \
  3. --paravirt \
  4. --location=http://rich-desktop/Centos_5/

  1. find . -type f | xargs sed -c -ibak 's/search/replace/'

or
  1. find . -type f | xargs perl -pi~ -e 's/s_show_nofity/s_show_notify/g;'

  1. for i in *.tif;
  2. do convert blank320x240.png $i -auto-orient -resize 320x240 \
  3. -colorspace RGB -compose Src -gravity center -composite $i.jpg;
  4. done

linux find examples

  1. #find all files under /dir older than 7 days, and delete
  2. find /dir -type f -mtime +7 | xargs rm -f
  3. #find all files newer than FILE, and delete
  4. find /dir -type f -newer /path/to/FILE -exec rm \{\} \;
  5. #find all files older than 10 minutes, and print names(print is default)
  6. find /dir -type f -mmin +10 -print
  7. #find all files newer than 1 day, and tar them to file.tar
  8. find /dir -type f -mtime -1 | tar -c -T - -f file.tar