Categories
Linux Mastering Development

Difference between $1 > wc -l and wc -l < $1 [duplicate]

Why doesn’t echo $($1 > wc -l) work but echo $(wc -l < $1) works? For printing the number of lines of a file given as command line argument. Shouldn’t they be the same thing?