Search Results

Search: Posts Made By: leostar_10
35,057
Posted By leostar_10
Thanks. That was it. Strange that the website...
Thanks. That was it. Strange that the website from where I am learning shell scripting has it elsif everywhere..hmm.
35,057
Posted By leostar_10
Bourne Shell: if elsif question
Hi All,
Must be something obvious I am missing, but the simple script below doesn't work.

#!/bin/sh
x=4
if [ "$x" -eq "4" ]
then
echo "x is $x"
elsif [ "$x" -gt "4" ]
then...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 12:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy