Site icon Voina Blog (a tech warrior's blog)

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

Advertisements

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

Exit mobile version