Roland Mainz writes:
> 2. Erm, wouldn't it be better to filter the comment lines directly after
> the "cat", e.g. turn...
[...]
> +             cat "${ORIG}" | grep '^[^#]' | while read line; do
[...]
> ... AFAIK this would avoid a |fork()|/|exec()| of "grep" for each line
> (I ignore the extra "cat" in this case :-) ) ...

Why not get rid of the uuoc as well?  Using '< "$ORIG"' would be
equivalent.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to