Bash Script Using An Array As Attribute