[Gllug] Imposing a delay in a pipeline
- Tethys
tethys at gmail.com
Tue Apr 13 16:17:58 UTC 2010
On Tue, Apr 13, 2010 at 5:12 PM, Andy Millar <andy at andymillar.co.uk> wrote:
> #!/bin/bash
> while read line ; do
> ( sleep $1 ; echo $line ) &
> done
With the amount of data I'm talking about, starting a new process per
line would quickly bring the machine to its knees...
Tet
--
“It seems intuitively obvious to me, which means that it might be
wrong.” -- Chris Torek
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list