Date: Thu, 27 May 1999 23:05:13 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Adam Breaux <freebsd@idomains.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Shell script Message-ID: <19990527230513.C2501@rainbow5.scientia.demon.co.uk> In-Reply-To: <013101bea87d$e26ee790$1e01a8c0@altronics.com> References: <013101bea87d$e26ee790$1e01a8c0@altronics.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Adam Breaux wrote: > I need a shell script to remove page-breaks from a document before > printing...can someone help, I'm new to this *nix thing.... If the page breaks are just ^L, try: $ tr -d '^L' < infile.txt > outfile.txt or, to send it straight to the printer, $ tr -d '^L' < infile.txt | lp (the ^L is typed by doing ctrl+V then ctrl+L). If you need anything more complex, look at sed, awk or perl. -- Ben Smithurst ben@scientia.demon.co.uk 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?19990527230513.C2501>