Running chmod on files with a particular extension
I have a directory with a lot of subdirectories and files. How can I write a bash script that add x permissions to .sh files only. or how can I change owner of files that has .sh extension? thanks in advance
No need for find as we know where they are located. We simply need -R to recursively poll the sub directories for *.sh files and then act upon them.
A Hangover Lasts A Day, But Our Drunken Memories Last A Lifetime
Linux user #349545