In: Computer Science
The name of your bash script must be script1 and below is a description of what it should do when executed. |
|
A few useful hints:
|
echo "what is zip program's location"
echo "Enter the full path e.g. /etc/zip or /proc/bus/zip"
read x
y=`which $x`
if [ "$x" == "$y" ]
then
echo "Great guess, zip's location is $y"
else
echo "Wrong guess and another message You guessed
$x"
fi
if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and i can edit and change the answers if you argue, thanks :)