I have a load of zero length files around in my file system.
I want to first find them, then delete them.
This almost works:
ll -R /moose |grep ' 0 '|awk '{print $9}'|xargs -n 1 -t -i rm -i {}
The problem is that the full path is not returned from the awk, only the filename. So the delete...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.