Skip to content
Studytrails

Tutorials in ML, AWS, R and Java

  • Amazon AWS
    • S3
  • Videos
  • Json
    • Jackson
    • GSON
  • R
    • RServe
    • RJava-Eclipse-Plugin
    • Core
  • blog
  • Source Code

Recursively delete files not containing a specified string in the filename

October 5, 2015 by Mithil Shah

find . ! -name '*gz' -type f -delete

This deletes all files that do not contain ‘gz’ in its filename

facebook Share on Facebook
Twitter Tweet
Follow Follow us
custom Share
custom Share
custom Share
custom Share
custom Share
Categories blog
Post navigation
Find all files recursively not containing a specified string in the file name
kill all processes with a specific string in its name

Recent Posts

  • Amazon S3 lifecycle policies
  • Host a static website on Amazon S3
  • Amazon S3 encryption
  • Amazon S3 access control and permissions
  • Amazon S3 pricing

Recent Comments

  • Mithil Shah on Java Google Json (Gson) Introduction
  • Aljosha on Java Google Json (Gson) Introduction
  • Mahebabu on Docker Architecture – Engine, Containerd, runc
  • Gleison da Cruz Cruz on Java Gson – Building json from java (Data-Binding)
  • DavidZ on Java json – jackson List serialization
© 2022 Studytrails • Built with GeneratePress