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:Pi-Hole, VPN Server, Static Anycast IP on Google Cloud's Free Usage TierInstall Terraform on Ubuntu 20.xExtending a logical volume in a virtual machine - ESXi