Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

UNIX PROGRAMMING Problem 9 (12 points): Answer the following questions assuming that the file names .txt contains the following 9 lines of content: names txt

UNIX PROGRAMMING

Problem 9 (12 points): Answer the following questions assuming that the file names.txt contains the following 9 lines of content:

image text in transcribed

names txt Admins: Bob John Dr. Evil Sarah Tim Chris a Give the command for obtaining the lines starting at (and including) "Dr. Evil" and going to the end of the file. b) Give the command for obtaining just the first two lines of the file "names txt". c Give the command for obtaining just the names in the file (from "Bob" to "Chris" inclusively) using the tail and head commands d) Give the command to open the file "names txt" for reading, starting at the line containing "John" (do not use the line number). e) Give the command to open the file "names ixt" for reading, starting at line 5. f Give the command for quickly printing off (displaying on the terminal window) the entire contents of the file "names txt

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

Recommended Textbook for

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions

Question

what is the answer to problem 2-17

Answered: 1 week ago