Nguyễn Tâm Hảo
New member
How do I redirect the number of lines in Unix?
Answer
You can use
the -l flag
to count lines. Run the program normally and use a pipe to redirect to wc. Alternatively, you can redirect the output of your program to a file, say calc. out , and run wc on that file.
Answer
You can use
the -l flag
to count lines. Run the program normally and use a pipe to redirect to wc. Alternatively, you can redirect the output of your program to a file, say calc. out , and run wc on that file.