I was reading this question, in which someone is trying to get the number of lines in a file from the shell. From the comments, I saw and implemented that the following:
$ wc -l myfile.txt
30213 myfile.txt
$ wc -l < <filename>
30213
What I don't understand is, what the <
operator is doing here. Can someone explain why the <
operator chops off the file name from the output in this case?