I'm attempting to run a bash command on a forloop object but it's trying to look for a file instead of use the forloop object.Example:The input file contains lines in the format of user:passwordfor item in $(cat myItems);do        USER = cat $item | cut -d : -f1        PASS = cat $item | cut -d : -f2doneThe result of this is that it says File $item isn't foundI also triedfor item in $(cat myItems);do        USER = $(cat $item | cut -d : -f1)        PASS = $(cat $item | cut -d : -f2)done
BASH Operations on a for loop object
shell script
This appears to achieve what you're after, and keeps to the script approach you originally intended.$ cat myItemsuser:passuser2:pass2$ for item in $(cat myItems);do    USER=$(echo $item | cut -d : -f1)    PASS=$(echo $item | cut -d : -f2)    echo user $USER pass $PASSdoneuser user pass passuser user2 pass pass2$