12345678910111213141516171819202122 |
- #!/bin/bash
- echo "[essai] Current directory :"
- if [ $# = 0 ]
- then
- echo 'No argument !!!'
- elif [ $# = 1 ]
- then
- echo "Good thing : $1"
- else
- echo "Many things : $1, and $2"
- fi
- # Number process
- if [ $1 -lt 21 ]
- then
- echo "Tiny number"
- elif [ $1 -eq 21 ]
- then
- echo "Perfect !"
- else
- echo "Pretty big."
- fi
- echo '[essai] End of script.'
|