I am very new to making bash scripts, but my goal here is to take a .txt file I have and assign the string of words in the txt file to a variable. I have tried this (no clue
In bash $(< answer.txt) is a builtin shorthand for $(cat answer.txt)
$(< answer.txt)
$(cat answer.txt)
I suspect you're running this print:
NAME run-mailcap, see, edit, compose, print − execute programs via entries in the mailcap file