Question: 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

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!