Skip to content
Studytrails

Tutorials in ML, AWS, R and Java

  • Amazon AWS
  • Videos
  • R
    • RServe
    • RJava-Eclipse-Plugin
    • Core
  • Machine Learning
  • java
    • frameworks
    • Json
      • Jackson
      • GSON
  • Kubernetes

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

Categories blog
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

  • An easy introduction to LLM agents – structure and components
  • Enforce tagging for SageMaker training job
  • Introduction to scaling Large Model training and inference using DeepSpeed
  • Understand CLIP (Contrastive Language-Image Pre-Training) — Visual Models from NLP
  • Amazon S3 lifecycle policies

Recent Comments

  • JSON in Java | Baeldung on Java Google Json (Gson) Custom Serializer
  • Candy on List all Objects in R
  • Biuro Nieruchomości Warszawa on Understand CLIP (Contrastive Language-Image Pre-Training) — Visual Models from NLP
  • Dan on Print values on R console or file using cat() or print()
  • srujana on CloudFormation for SageMaker instance
© 2025 Studytrails • Built with GeneratePress