Sep 16, 2004 #1 ElTech IS-IT--Management Apr 16, 2003 22 US I'm looking for a command for Redhat 8 that deletes 0 Kb files with extension .php including files located inside sub-directories Thanks for your help in advance
I'm looking for a command for Redhat 8 that deletes 0 Kb files with extension .php including files located inside sub-directories Thanks for your help in advance
Sep 17, 2004 1 #2 KenCunningham Technical User Mar 20, 2001 8,475 GB From the top of your directory tree: find . -size 0 -name '*.php' | xargs rm BUT try it with an xargs ls -la first to check the correct files are being found. HTH. Upvote 0 Downvote
From the top of your directory tree: find . -size 0 -name '*.php' | xargs rm BUT try it with an xargs ls -la first to check the correct files are being found. HTH.