In checking some literature, I'm still not sure exactly what it's called that I am trying to do. Sorry, I'm not very familiar with the terminology yet.
As you recommended, this works:
echo "Your line count is: $( wc -l < filename )"
But now I want to store that number, say in a parameter called $linecount.
Later in the code, I will call on $linecount.
Can this be done? The closest thing I can find in guides it the
Which seems to only be useful if the user is going to input the variable.