Date: Sun, 4 Oct 1998 00:50:33 -0800 (AKDT) From: Steve Howe <groggy@iname.com> To: Ben Smithurst <ben@scientia.demon.co.uk> Cc: "Alain G. Fabry" <fabry@panam.edu>, freebsd-questions@FreeBSD.ORG Subject: Re: Printing out man pages Message-ID: <Pine.BSF.3.96.981004004155.442D-100000@abc.xyz.net> In-Reply-To: <19981003145142.A7999@scientia.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> > #!/usr/bin/sed -f > > # > > # m2a -- Man to Ascii filter. > > > > s/.<CTRL-H>//g > Why bother, when `col -b' does that for you? i didn't know "col" was more efficient than "sed". col is half the size of sed, and less complex, so you are probably correct that it is more "efficient" in a physical sense. however, sed is a better tool all around, and has a greater variety of uses, so it may be more efficient in a realistic sense for a new user to become familiar with sed. if the question applies to why is it in a shell script, the answer is that users of FreeBSD all have different uses for the OS. and if my needs don't require my to learn every xyz utility and all their options, my effiency is increased by placing commonly used functions in scripts so i don't have to remember all the details. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.981004004155.442D-100000>