Date: Fri, 6 Jun 2003 16:39:35 -0700
Reply-To: cassell.david@EPAMAIL.EPA.GOV
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "David L. Cassell" <cassell.david@EPAMAIL.EPA.GOV>
Subject: Re: Removing line numbers in LOG?
Content-type: text/plain; charset=us-ascii
SAS User <sasuser@GUILDENSTERN.DYNDNS.ORG> sagely suggested:
> sed -ne '/^[0-9][0-9]*/s/...........//p' < foo.log > foo.sas
perl -pe "s/^\d+!?//" < foo.log > foo.sas
> This misses 'CARDS' and 'DATALINES' statements, and may include
> additional autoexec lines.
This has similar flaws, but does tear off the annoying "!" when a
line runs long.
And it can be done in SAS V9, using the prx___ functions.
I just couldn't resist,
David
--
David Cassell, CSC
Cassell.David@epa.gov
Senior computing specialist
mathematical statistician