I'm trying to code a line (ksh) without much success along the lines of :-
If [ hostname = red or black or green or yellow or blue ]
then
.....etc
fi
I know i could use the case statement but i'm hoping someone may know a one liner or a simple workaround.
If [ hostname = red or black or green or yellow or blue ]
then
.....etc
fi
I know i could use the case statement but i'm hoping someone may know a one liner or a simple workaround.