Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[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

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

Students also viewed these Databases questions

Question

Apply PESO model to better understand the complexity of media.

Answered: 1 week ago

Question

Which team solution is more likely to be pursued and why?

Answered: 1 week ago

Question

Did the team members feel that their work mattered

Answered: 1 week ago