Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Delete specified files in the current directory (See related posts)

man find | less -p '-delete'

find . -mindepth 1 -maxdepth 1 -type f -name '*.txt' -ls

find . -mindepth 1 -maxdepth 1 -type f -name '*.txt' -delete

You need to create an account or log in to post comments to this site.