Question: 1) execute the script. #!/usr/bin/ksh grep -i 'Mantle' cards if [ $? ] then echo The name Mantle was found fi (TRUE OR FALSE) The
1) execute the script.
#!/usr/bin/ksh grep -i 'Mantle' cards
if [ $? ] then echo "The name Mantle was found" fi
(TRUE OR FALSE) The above script will locate the string "Mantle" within the file called cards and output the lines and a success statement.
2) execute the script.
#!/usr/bin/ksh if [ -f /etc/passwd ] then echo "The file exists" else echo "The file does not exist" fi
(TRUE OR FALSE) The script will locate the /etc/passwd file and tell you that it exists
3) execute the script.
#!/usr/bin/ksh for index in `cat list` do echo $index done
(TRUE OR FALSE) The script will output each line contained in the file called list.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
