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