June
							18th, 
							2010
										
				
					Resizing many images at once with ImageMagick, also setting ouput quality:
	
Top 10 files that are consuming most hard drive space in /var:
	
Finding files and executing a command on them:
	
Recursively changing directory and file rights:
	
Recursively deleting files from a directory:
	
Recursively removing .svn folders from a dir:
	
Changing filename suffixes:
	
				
			- 
			convert -quality 95 '*.jpg[400x600]' pic%03d.png
Top 10 files that are consuming most hard drive space in /var:
- 
			du -a /var | sort -n -r | head -n 10
Finding files and executing a command on them:
- 
			find . - name 'Name*' -exec ls -l {\}\ \;
Recursively changing directory and file rights:
- 
			find . ! -type d -exec chmod 644 {} \;
- 
			find . -type d -exec chmod 755 {} \;
Recursively deleting files from a directory:
- 
			find . -type f -exec rm {} \;
Recursively removing .svn folders from a dir:
- 
			find /path/to/destdir -name '.svn' -exec rm -r {} \;
Changing filename suffixes:
- 
			for f in *.JPG; do mv $f `basename $f .JPG`.jpg; done;


There's a glitch in the 10 biggest files line. The -h option in du messes up the sort. Use without -h to get usable but hard to read output.
Thanks for pointing this out!
Thanks for pointing this out!