Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Linux Scripting [Time Sensitive] What commands are to be used in the following instances: a- We have a huge file called file1 and we just

Linux Scripting [Time Sensitive]

What commands are to be used in the following instances:

a- We have a huge file called file1 and we just want to know if our name is in the first five lines of that file. Write the command.

b- Print all lines that have only the word North in them (no other words). File name is file1.

c- Print all lines that start with uppercase letters. File name is file1.

d- Print all lines that end with the word test. File name is file1.

e- Substitute all occurrences of the word sad in a file with the word happy. File name is file1.

f- File1:

Name LastName GPA ID Balance

Fred Johnson 3.5 1 $1250

John Carlton 4.0 2 $3250

File2:

City Phone Email ID

San Francisco 415-222-333 fred at x.com 1

San Jose 408-333-2121 steve at y.com 2

Print the email and balance of those students who have a GPA of 4.0. Use join and awk commands.

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Find y'. y= |x + X (x) (x) X 1 02x+ 2x 1 O 2x + 1/3 Ex 2x +

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago