Search Results

Search: Posts Made By: vinodkumar1979
946
Posted By vinodkumar1979
script o/p problem
#!/bin/bash
string=$1
if [ $string=red ]; then
echo "blue"
elif [ $string=blue ]; then
echo "red"
else
echo "nocolour"
fi

in the above script if I run
red script.sh
i am getting blue ...
Showing results 1 to 1 of 1

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