Ralph Corderoy wrote:
> Hi Larry,
> 
>> Groff was barfing with a "too many open files" error, which I worked around 
>> by doing "ulimit -n 768" first. I ended up with over 640 HTML files. I'm not 
>> sure why all every output file has to be open at once, though.
> 
>
>     $
> 
> What status close() returns depends on your awk.  And closing a pipe
> should wait for the command to finish so if you've a grep that produces
> 1E6 lines and you just want to read the first then pipe it into `sed 1q'
> before reading it into awk so the grep gets a SIGPIPE on writing to the
> finished sed, curtailing its largess.
> 
> Cheers,
> 
> 
> Ralph.

To access head or tail of a ascii file the 'head' and 'tail' commands are what 
you
are looking at (prevents reading the whole file just to get the result).

re,
 wh




_______________________________________________
Groff mailing list
Groff@gnu.org
http://lists.gnu.org/mailman/listinfo/groff

Reply via email to