Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] One line script for md5sum
Date: Wed, 17 Dec 2008 19:43:06
Message-Id: 200812170849.05318.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] [OT] One line script for md5sum by Neil Bothwick
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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] [OT] One line script for md5sum Willie Wong <wwong@×××××××××.edu>
Re: [gentoo-user] [OT] One line script for md5sum Neil Bothwick <neil@××××××××××.uk>