stupid bash tricks (how to loop on the command line)

Doncho N. Gunchev gunchev at gmail.com
Mon Nov 12 04:11:31 UTC 2007


On Thursday 2007-11-08 22:13:38 aragonx at dcsnow.com wrote:
> > Actually, if you just want to loop some command, you can use the command
> > watch as well.
> > Like so:
> >
> > watch -n3 df
> >
> > Saves writing/typing bash-scripts :)
> 
> Woah!  NICE.  Thanks.  :)
> 

btw, try 'watch -d -n3 df' also, might like it ;-)

-- 
Regards,
  Doncho N. Gunchev, GPG key ID: 0EF40B9E, Key server: pgp.mit.edu




More information about the users mailing list