Piping hot ball of Tar. abram, July 27, 2010 For those who have gotten into the idea of typing commands as little as possible, here’s out to pipe the output from tar straight into a gzip file. tar cvf – myfile.jpg | gzip > myfile.tar.gz tar cvf – folder | gzip > folder_backup.tar.gz Take note of the second example… Continue Reading
I found the F (-mtime +3)! abram, July 20, 2010 forgetting is the bane of my existence. don’t ask why. i’ve forgotten this syntax enough times that i should have it tattooed on my upper arm. in fact, I think i’ve posted it on my own site before and forgotten about that. find /path/to/files* -mtime +5 -exec rm {} \;… Continue Reading
BASH: deleting files older than X number of days abram, July 29, 2009July 29, 2009 find /path/to/folder -mtime +5 -exec rm -f {} \; A handy utility to stick into the old brain. Thank you, internet, for providing me such a vast and available resource so that I know longer have to rely on my own faculty of memory. Continue Reading