19 Jan
2006
19 Jan
'06
19:19
Shaun Q wrote:
Is there a way to only delete files in a directory over a certain size? I was hoping to find someway to do it with rm, but I haven't had much luck finding an option to do so yet.
Run e.g. "find <dir> -size +1M -ls" to check what's being deleted. Then: find <dir> -size +1M | xargs rm /Per Jessen, Zürich (2.31 °C) -- http://www.spamchek.com/ - managed anti-spam and anti-virus solution. Let us analyse your spam- and virus-threat - up to 2 months for free.