Friday July 09, 2004
MCWong
|
| Blah! MCWong |
|
ksh scripting #3: list elements It seem unavoidable, at some point there is always some kind of list that needs spliting.
Here's to give it a go:
Why '|' as separator? Well, when was the last time you see this '|' thing in the English language? And, when was the last time you process a bunch of shell command pipelines all concatenated together into a list to be processed? I supposed you get them more often with each pipeline on a separate line, as in a shell script (?!); which you could readily process with read, grep, awk, sed and a zillion other utilities. Why not ':' as in /etc/passwd? I have scripts that process list of URL's, so 'http://...'! Not very convenient isn't it.
ksh scripting flashback: #1 #2 (2004-07-09 00:00:03.0) Permalink Comments [1] |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||