Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Multi if or or similar

$
0
0
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.

Viewing all articles
Browse latest Browse all 16232

Trending Articles