Putty Please Give Commands Way Insert Commands Putty Create Ch13hw Directory Home Director Q37178971

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


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.