Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

 

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

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Corporate Financial Accounting

Authors: Carl S. Warren, James M. Reeve, Jonathan E. Duchac

12th edition

1305041399, 1285078586, 978-1-133-9524, 9781133952428, 978-1305041394, 9781285078588, 1-133-95241-0, 978-1133952411

More Books

Students also viewed these Accounting questions