Question: Task 1- Use Sed Command To Answer The Following Questions 1. Create A File With The Following Text Linux Is A Free Operation System Linus

Task 1- Use "Sed" Command To Answer The Following Questions 1. Create A File With The Following Text Linux Is A Free Operation System Linus Torvalds Start The Project To Create Linux As A Free OS Kernel In 1991 Linus Was Originally From Finland And University Of Helsinki You Can Download Linux For Free. Services Like Ftp Can Be Installed On Linux Unix And

Task 1-Use "sed" command to answer the following questions 1. Create a

 

Task 1-Use "sed" command to answer the following questions 1. Create a file with the following text Linux is a free operation system Linus Torvalds start the project to create linux as a free OS kernel in 1991 Linus was originally from Finland and University of Helsinki and vicese fp can be installed on Some of the versions of Linux are Fedora, Redhat, Ubuntu 2. Search the file and print: a. only lines containing "linux" b. only lines that do not contain "linux" c. Lines 3 to end d. All lines excluding line 3 to 5 3. Search the file and replace all "linux" with "Linux" 4. Write the output from question 3 in a file 5. Create a simple html file for web server home page: a. Create an html file as a template (script.sed) b. Write a script to take any simple text file and create html file for Apache web server using the script.sed (template) Task 2- Use "awk" command to answer the following questions 1. Using information below create awkexample.csv file. Read the file and print name and email address field only. Name Email address ] John Garon Kaven Alisa Surname Smith May Hill Hoy 1234 smith@cs.com.au may@cs.com.au 5678 Hill@cs.com.au 9012 Abox@ss.co.u 4567 2. Using awk command print the first field of file "/etc/passwd" 3. Print each system user home path using "function" and "awk" command

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