#Bash one liner: Change permissions recursively for a set of files matching a criteria

By | November 2, 2021

There is a neat way using a bash one liner to change attributes of all the files from a path and sub paths that match a criteria.

As an example following line makes all the script files from a path and sub paths executable.

find . -name '*.sh' -type f | xargs chmod +x

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.