Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

22 d out of 3 4 5 A user of Linux operating system has created a file F with below data in the file and

image text in transcribed
22 d out of 3 4 5 A user of Linux operating system has created a file F with below data in the file and now he want to filter some data using various shell commands. Give the appropriate commands required by the user to get his results. Assume spaces given between the fields are uneven] 1 Nizwa Oman 2 Hyderabad India Muscat Oman Bombay India Karachi Pakistan 6 Izki Oman 7 Delhi India a.) Write a command to print only cities of India[1] b.) Write a command to print only: izki (11 Muscat c.) Write a command to print cities of Oman and Pakistan. [1] d.) Write the command to count number of cities of Oman (0,5) e.) Write a command to print only country names in sorted order without duplicates[0,5) 1 A, B1

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