[CentOS] repeat command

John R. Dennison jrd at gerdesas.com
Thu May 2 23:45:58 UTC 2013


On Fri, May 03, 2013 at 01:36:36AM +0200, Markus Falb wrote:
> 
> this works but at least with bash you can do it with brace expansion
> for x in {1..10}; do … ; done
> 
> it's a bashism but maybe more portable, e.g. OS-X has no seq
> no fork (for the seq) is necessary as well

True.  Thing I like about seq is that it also takes an optional
increment value which can be very handy at times.






							John
-- 
Being with a woman all night never hurt no professional baseball player.  It's
staying up all night looking for a woman that does him in.

-- Casey Stengel (1890 - 1975), American baseball player and manager,
   BBC "The Myths of Sex Before Sport" (Jennifer Quinn), 12 August, 2004
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20130502/73bb3bd1/attachment.sig>


More information about the CentOS mailing list