I want to count the number of lines in a file using
wc -l but only output the number, without the following space and filename.
Edit from comments: The filename may have numbers in it.
Currently if I do:
wc -l /path/to/file
On a file with 176 lines, the output is:
This is within a bash script, and the resulting number will be assigned as the value of a variable.