Sep 16, 2004 #1 ElTech IS-IT--Management Joined Apr 16, 2003 Messages 22 Location 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 Joined Mar 20, 2001 Messages 8,475 Location 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.