Friday, September 11, 2009
How to Delete all files based on a regular exp across multiple folders
Use Case : How to delete something*.log across multiple folder in one shot
Command : find . -name "*public_access*.log" -exec rm "{}" \;
I would try to use a echo before arm it with violent behavior.
example : find . -name "*public_access*.log" -exec echo rm "{}" \;
Command : find . -name "*public_access*.log" -exec rm "{}" \;
I would try to use a echo before arm it with violent behavior.
example : find . -name "*public_access*.log" -exec echo rm "{}" \;