Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LINUX please?! 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 ======================= Module 3: sed All steps should be done

LINUX please?!

image text in transcribed

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 =======================

Module 3: sed All steps should be done using one command line and the sed utility. Don't use any other filter such as cut, grep, etc. Copy the file lab3in from the cis18b directory to your current directory. The file lab3in has a header line and an ending line of text. In between are lines about the 6 continents, where each line has 3 fields, with ; as the delimiter. Use this file for all steps below. To compare sed with previous filters that you know (and as a review of these filters): 1. Write a sed command line that has the same output as: head 4 lab3in | tail 2 2. Without using line numbers, write a sed command line that has the same output as: grep 'America' lab3in 3. Without using line numbers, write a sed command line that has the same output as: wc 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions