1 |
On Sunday 14 December 2008, Neil Bothwick wrote: |
2 |
> On Sun, 14 Dec 2008 11:47:51 +0200, Alan McKinnon wrote: |
3 |
> > That's why I suggested them :-) I use them a lot, especially when I |
4 |
> > have to run the same set of commands on 15 different hosts, then I do |
5 |
> > something like: |
6 |
> > |
7 |
> > for I in $(seq 1 15) ; do |
8 |
> |
9 |
> If you're using bash or zsh,you can speed this up with |
10 |
> |
11 |
> for I in {1..15}; do |
12 |
|
13 |
Hmm, I tried this with a sequence of files that look like name0001stat.txt to |
14 |
name0198stat.txt, but when I run {0001..0198} it fails because it seems to |
15 |
ignore the zeros in 0001 and start counting from 1. Do I need to use some |
16 |
escape character for this? |
17 |
-- |
18 |
Regards, |
19 |
Mick |