Question: [Time Sensitive] Linux Introductory Shell Scripting (Focusing on SED & AWK) 1) Part A: a- Show all lines that have only the word hello in

[Time Sensitive] Linux Introductory Shell Scripting (Focusing on SED & AWK)

1)

Part A:

a- Show all lines that have only the word hello in file file1.

b- Show all lines that have at least five characters.

c- Show all lines that have only 5 digits.

d- Write the command to find out the number of words in the file file1.

e- Write the command to substitute all the words Unix to Linux in a file called file1.

f- Write the command to rename the file file1 to file2.

g- Write the command to list only the directories in the current folder.

h- Use the sed command to print lines 6 to 10. Modify that command to place lines 6 to 10 of file1 into file2.

i- Write a script to read three numbers and find the sum of these numbers. Find the largest number. Display the largest number and the sum.

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!