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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started