Make Extensionless Files Executable

RetrieverRetriever
1 min read
find . -type f ! -name "*.*" -exec chmod +x {} \;

"*.*" is used to match all filenames that contain a '.'

! -name "*.*" is used to find files that do not contain a '.', which usually means files without an extension.

0
Subscribe to my newsletter

Read articles from Retriever directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Retriever
Retriever