Answers for "if sh"

0

if sh

#!/bin/sh

#Faccio la mia domanda
echo -n "Qual'è il nome di Garibaldi? "

#Recupero la risposta
read RISPOSTA

#Stampo a video il risultato
if [ ${RISPOSTA} = "giuseppe" ]
then
   echo "Risposta esatta"
else
   echo "Risposta sbagliata"
fi
Posted by: Guest on May-26-2021
0

fi bash

if [ ! -x /usr/bin/axel ]
then echo "axel is not installed, perform this?(y/n)"
    read ops
    case $ops in
     y) if apt-get install axel -y --force-yes
           then echo "axel installed"
        else echo "unable to install the axel. you are using sudo?" ; exit
        fi ;;
     n) echo "not possible usage apt-fast" ; exit ;;
    esac
fi
Posted by: Guest on May-11-2020

Browse Popular Code Answers by Language