|
| |
:Looping the Easy Way
[ Thanks to Amy Bennett for this link. ]
"On Linux systems, "seq 5 11" will generate a list of numbers starting with 5 and ending with 11.
seq 5 11
5
6
7
8
9
10
11
Now, doesn't that just make your day? OK, maybe not. But, think how nice it would be to turn a script like this:"
Complete Story
Related Stories:
Speaking UNIX: Peering into pipes(Nov 04, 2009)
Book Excerpt: Chapter 6: Functions and Functional Programming(Oct 09, 2009)
Normalizing Path Names with Bash(Sep 04, 2009)
Null pointers, one month later(Sep 01, 2009)
Learn Linux, 101: Text streams and filters(Aug 31, 2009)
The Kernel Newbie Corner: Kernel Debugging with proc "Sequence" Files--Part 2(Aug 26, 2009)
Nano Text Editor Course(Aug 19, 2009)
A tempest in a tty pot(Aug 13, 2009)
|