Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

linux course Consider the following Snapshot of a bash terminal, there are some missing parts. Please drag one box from below labeled boxes to its

image text in transcribed

image text in transcribed

linux course

Consider the following Snapshot of a bash terminal, there are some missing parts. Please drag one box from below labeled boxes to its correct place such that the box is labeled with an appropriate command or argument. username: \$ cat group1 root:x:0:root users:x:200:henry, image,enquiry bin:X:1:root, bin,daemon username: \$ cat script1.sh if [ \$\# -eq 0]; then echo "Enter the string to be searched: \c read pname echo "Enter the filename to be used: \c " read flname if [z "Spname" ][ [ -z "\$finame" ]; then echo At least one input was null exit 2 fi grep "\$pname" "Sfilename" 2>/dev/ null echo "Spname not found in $ flname" elif [ $-eq 2] ; then grep "\$1" $22>/dev/ null echo "\$1 not found in $2 " else echo $ fi username: \$ root not found in script 1 username: \$ root:x:0:root bin:X:1:root,bin,daemon username: \$ root username: \$ Enter the string to be searched: \c username: $ Enter the string to be searched: Ic Enter the filename to be used: Ic group1 At least one input was null

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

Intelligent Image Databases Towards Advanced Image Retrieval

Authors: Yihong Gong

1st Edition

1461375037, 978-1461375036

More Books

Students also viewed these Databases questions

Question

Develop goals and timetables.

Answered: 1 week ago