>> Well, I guess you learn something new everyday. Is nl
>> an old SYSV thing? cat -n may be more portable. FYI:
>nl is supported on three of the four platforms I can access from
>here: HP-UX 9.05, Solaris 2.5.1 and SCO_SV 3.2 but not FreeBSD 2.2.2.
>cat -n is not supported on HP or SCO, but is on Solaris and FreeBSD.
>From my sample nl is more portable.
Yes it is. All UNIX95 and UNIX98 compliant systems must have nl, but
they are not required to support a -n option to cat. (The only option
specified for cat is -u.)
--
UniSoft Limited, London, England.