Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create files f1, f2, and f3 with the respective content shown below in the directory called hello. Show a grep command or piped commands to

Create files f1, f2, and f3 with the respective content shown below in the directory called hello. Show a grep command or piped commands to accomplish the items in part (a) to part (i): Contents of file f1 : An application program triggered by user 7806, requests data from DB. Assuming the request is accurate per schema of the DB, what additional information does the DB Manager 35098 need in order to make sure that the data is ok to be accessed? Contents of file f2 : If the OS (for ARM v57) that a DBMS is implemented on cannot handle files larger than 1TB, one u Must, however, LAR and u2 move to a better OS if the DBMS is larger than 1TB. True or False? Contents of file f3 : An application program triggered by user 7806, requests data from DB. Assuming the equest\ is accurate per schema of the DB, what additional * information does the DB Manager program 2.2 order 2 make sure that the d\ata\ is ok to be accessed?

a. List all the filenames in the subdirectory hello ending with .txt. b. List the lines in file f2 which start with m or M. c. List the lines (with line number ignoring upper/lower case) in file f2 containing the whole word lar. d. List the lines in file f2 containing exactly one character. e. List the lines in file f3 which have any text enclosed by \ (list line numbers as well) f. List the lines in file f3 which dont have any text enclosed by \ (list line numbers as well). g. List the lines in file f3 which have an asterisk anywhere. h. List the lines in file f3 containing a number followed by a period which is further followed by a number i. Create a BASH script file with the commands used in parts (e) through h, and execute the script file. Enter a number [or "exit" to end]: 5 Result: 120 Enter a number [or "exit" to end]: -5 ERROR: The number needs to be greater than 0 Enter a number [or "exit" to end]: 0 ERROR: The number needs to be greater than 0 Enter a number [or "exit" to end]: exit BYE!!!

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

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions