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
The $() construction returns the stdout from a command.
$()
stdout
file_contents=$(cat answer.txt)