Thursday, July 15, 2010

finding files

Last couple of months I've wanted my output format to look like this from find:
Mon Feb 15 12:49:18 2010, 50356KB, ./files.txt

This was the printf format I've used.
find . -name tmp* -type f -printf "%t, %kKB, %h/%f\n"

Sunday, July 11, 2010

Crontab summary

A good crontab summay.


I was looking to redirect stderr to stdout and append to a file -- example

*/10 * * * * /bin/execute/this/script.sh 2>&1 >> /var/log/script_output.log

Monday, January 25, 2010

MySQL MyIASM files what are they for MYI,MYD,frm

One would hope to never need to know this, but an unfortunate soul who is trying to recover MySQL MyISAM tables may need this.


http://forge.mysql.com/wiki/MySQL_Internals_MyISAM

A quote from the above:
'MySQL creates files named Table1.MYD ("MySQL Data"), Table1.MYI ("MySQL Index"), and Table1.frm ("Format")'