LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2003, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 >

perl -pe "s/^\d+!?//" < foo.log >

> 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 Senior computing specialist mathematical statistician

Back to: Top of message | Previous page | Main SAS-L page