Free Republic
Browse · Search
General/Chat
Topics · Post Article


1 posted on 03/01/2019 10:15:34 AM PST by ShadowAce
[ Post Reply | Private Reply | View Replies ]


To: rdb3; Calvinist_Dark_Lord; JosephW; Only1choice____Freedom; Ernest_at_the_Beach; martin_fierro; ...

2 posted on 03/01/2019 10:15:55 AM PST by ShadowAce (Linux - The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: ShadowAce

Lol - read that as “Bush case statement” and was wondering what W had said now :)


3 posted on 03/01/2019 10:18:27 AM PST by Skywise
[ Post Reply | Private Reply | To 1 | View Replies ]

To: ShadowAce
The case statement is extremely powerful, and can greatly simplify iterating over multiple options, as opposed to using long 'if ... then ... else' loops. Personally, I think it can make a script more legible than nested loops, which can easily get out of hand. Also, the final "*)" construct makes it easy to validate input. If your input doesn't fit the rather sharply defined criteria, you have an easy place to handle it.

ShadowAce, I'd recommend a post on 'while' loops next, as they are related IMO, one on functions would be cool too.

4 posted on 03/01/2019 11:52:04 AM PST by zeugma (Power without accountability is fertilizer for tyranny.)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: ShadowAce

You might like...

Linux servers targeted by new Chinese crypto-mining group
https://www.zdnet.com/article/linux-servers-targeted-by-new-chinese-crypto-mining-group/

Interesting stuff.
The ‘FREE MONEY’ mining will cause lots of trouble.

I’m just a lowly user, barely remember how to open terminal.
And all the mnemonics that make my brain hurt!!!

Long time user and I like it.


5 posted on 03/02/2019 9:27:12 AM PST by DUMBGRUNT ("The enemy has overrun us. We are blowing up everything. Vive la France!")
[ Post Reply | Private Reply | To 1 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson