Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Good advice.

I would add a step where you dump the output of find (after filtering) into a textfile, so you have a record of exactly what you deleted. Especially when deleting files recursively based on a regular expression that extra step is very worthwhile.

It's also a good practice to rename instead of delete whenever possible. Rename first, and the next day when you're fresh walk through the list of files you've renamed and only then nuke them for good.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: