Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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 between fields are uneven] 5 KIA BMW 2. Korea Germany Germany 1 Mercedes Renault 3 France 4 Toyota Japan 6 Audi Germany 7 Honda Japan a.) Write a command to print only last column in sorted order and remove duplicates (0.5) b.) Write a command to print only the car names belongs to Germany.[1] c.) Write a command to edit the file and to replace the word Mercedes with Benz. [1] d.) Write the command to print any one car made by Germany and one car made by France[0.5]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions

Question

Explain why economists usually oppose controls on prices.

Answered: 1 week ago

Question

=+ (b) Show that P[n- 1 max 0. Relate to Theorem 14.3.

Answered: 1 week ago

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago