If..else..fi - Linux Shell Scripting Tutorial - A Beginner's handbook

If..else..fi - Linux Shell Scripting Tutorial - A Beginner's handbook

瀏覽:781
日期:2024-08-25
Number Testing Script Create a shell script called testnum.sh: #!/bin/bash read-p "Enter number : "n if test $n-ge 0 then echo " $n is positive number." else echo " $n number is negative number." fi Save and close the file. Run it as follows: chmod +x tes...看更多