Leave a Reply 5

Your email address will not be published. Required fields are marked *


sara

sara

But cat -n also print line numbers before each line ?

Simon

Simon

To me they are both correct but the question does not make it clear if its every line or just the lines that are populated.

RJN

RJN

It says ‘each line’, so I think cat -n is the correct answer. nl does not number empty lines.

sara

sara

hmm.. I got it. Question is “Which command ..” , and in fact nl command do this not cat command. cat just with -n option give same result. That’s why B is correct.

al

al

nl – number lines of files