Arvil Meña
Home / Snippets / Linux – Recursively find file with name/extension pattern – delete too

Linux – Recursively find file with name/extension pattern – delete too

by Arvil
last updated => April 13th 2020 published => March 28th 2019
#dry run
find . -name "*.listing" -type f

#actual delete
find . -name "*.listing" -type f -delete
(source)

Related Links

  • https://explainshell.com/explain?cmd=find+.+-name+%22*.listing%22+-type+f+-delete

Share

Related Posts

Comments