Question: LINUX PLEASE!!! Module 4 : awk All steps should be done using one command line and the awk utility. Don't use any other filter such

LINUX PLEASE!!!
Module 4: awk
All steps should be done using one command line and the awk utility. Don't use any other filter such as cut, grep, etc.
1.Write an awk command line that has the same output as: head -4lab3in |tail -2
2.Without using line numbers, write an awk command line that has the same output as: grep Americalab3in
3.Without using line numbers, write an awk command line that has the same output as: wc l <lab3in
4.Without using line numbers, write an awk command line that has the same output as: grep -v '^$'lab3in
5.Without using line numbers, print only the lines with continent data, indenting each line by 3spaces.
6.Without using line numbers, print the continent names and areas, separated by colon (:).Only the continent names and their areas should be printed.
lab3in
Continent;Area(sq. mi);Density(People per sq. mi)
Africa;11,730,000;87.15
Asia;16,920,000;246.11
Australia;3,478,200;8.37
Europe;3,930,000;187.84
North America;9,460,000;57.29
South America;6,890,000;56.90
=======================

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!