Hello all,
I'm trying to do something like
read -d EOF stdin
for word in $stdin; do stuff; done
where I want to replace 'EOF' for an actual representation of the end of file character.
Edit: Thanks for the answers, that was indeed what I was trying to do. I actually had a facepalm moment when I saw stdin=$(cat)
lol
Just for kicks though how would you go about matching something like a C-d (or C-v M-v etc), basically just a character combined with Control, Alt, Shift, whatever in bash?