SyntaxFix
Write A Post
Hire A Developer
Questions
If you assign its output to a variable, bash automatically strips whitespace:
bash
linecount=`wc -l < log.txt`