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::0:root users:x:200:henry, image,enquiry bin:::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 "\$flname" ]; then echo At least one input was null exit 2 fi grep "\$pname" "Sfilename" 2>/ devull echo "\$pname not found in \$flname" elif [\$\#-eq 2 ]; then grep "\$1" $22>/ devull || echo "\$1 not found in $2 " else echo $ * fi username: \$ root not found in script1 username: root:x:0:root bin:::1:root,bin, daemon username: \$ root username: \$ Enter the string to be searched: Ic bin:x:1:root, bin, daemon username: \$ root username: $ Enter the string to be searched: Ic Enter the filename to be used: \c group1 At least one input was null \begin{tabular}{|c|c|} \hline/ script1.sh group1 / script1.sh root script1 \\ ./ script1 group1 / /script1 root script1 1 \\ ./ script1.sh / /script1 root groupt1 root \\ \hline/ script1.sh root \\ \hline \end{tabular} /script1.sh root group1

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

Students also viewed these Databases questions