Question: Suppose you have created a C program hello.c and you have successfully compiled it using gcc and obtained the output file hello. You know when

 Suppose you have created a C program hello.c and you have

Suppose you have created a C program hello.c and you have successfully compiled it using gcc and obtained the output file hello. You know when you run it the program would print a lot of messages on screen (e.g. several hundred lines) and you want to find out how many lines of output would be printed but you do not want to save these output messages into an external file. What Linux command(s) can you use to find out how many lines are output? Please type the complete command(s) that achieves the functionality

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!