One of these days I'll start dropping in some of my interesting unix tidbits I've picked up in my travels....
Trying to find what include file keeps passing in '-mt' to the CFLAGS. Very annoying!
find /opt/csw -type f 2>/dev/null |xargs file|grep -i ascii|cut -f1 |sed -e 's/:$//g'|xargs grep -l '\-mt '
Find and Remove files To find and remove based on name:
find /home -name *.tmp -exec rm {} \;
find / -name core -exec rm {} \;
To find and remove based on time. Be careful! you might need to combine this with a name option. Also note the second one removes directories which is different than files, as in the first.
find /home -mtime +0 -type f -exec rm {} \;
find /home -name temp -mtime +0 -type d -exec rm -r {} \;