26 Feb Changing permission on multiple files withing bash by kayals in Linux, Shell Srcipt, UnixComments File variable is an array and $files expands to the first element as you have noticed. To execute chmod on all elements of the array, use chmod +x "${files[@]}" Related posts:WordPress SQL Commands- create database, username with privilegesRemove Spaces between lines in a text fileError during SSL Handshake with remote server