All this I have to dothrough PUTTY. Please give me commands that way I can insert thesecommands into PUTTY.
Create ch13HWdirectory under your HOME directory and complete following tasksand save corresponding file in the directory.
1. Logical operators:Complete following example script as joker.sh:
#!/bin/bash
#
grep $1 /etc/passwd || { echo“Pattern not found – Exiting!; exit 1; }
{ echo “Pattern found – Jo Over!” ;exit 0; }
Now make the script executable andrun the following test commands:
joker.sh joker
echo $?
joker.sh jkim
echo $?
Answer