I am using wc -l < songs.txt to find out how many lines are in songs.txt
Then I want to store that as a variable. I've tried these:
OUT = $(wc -l < songs.txt)
OUT = "$(wc -l < songs.txt)"
I tried a lot from How to set a variable to the output from a command in Bash?
But I still get command not found error for OUT
wc -l < songs.txt works on its own
What simple thing am I missing here?