Answered step by step
Verified Expert Solution
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
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 nullStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started