Menu

[Solved]Done Using Awk File Called Temptxt Inside File Following Contents 670 12 22 11 Line Two Fi Q37156436

This is to be done using AWK:
There is a file called temp.txt and inside this file there are thefollowing contents:
670 12

22 11

There is a line in between those two fields above that youshould not count. Your job is to count the number of characters perline(do not count lines that are empty)

and take the average of them and round it down to the nearestwhole integer. The numbers can change as well as the empty linepositions, so do not hard code.

Expert Answer


Answer to This is to be done using AWK: There is a file called temp.txt and inside this file there are the following contents: 670… . . .

OR


Leave a Reply

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