[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
On Mon, May 13, 2002 at 12:39:44PM +0000, Adrian Midgley wrote:
Meanwhile I have been looking at extracting insurance reports and at present have come up with cat 0512*|sed 's/^\([0-9][0-9]\/[0-9][0-9]\/[0-9][0-9][0-9][0-9]\) \([A-Z].*\) \([0-9][0-9]\/[0-9][0-9]\/[0-9][0-9][0-9][0-9]\)/\3 entered \1 \2/'
which pulls one lot of info out, and another similarly long bit of egrepery that pulls out another lot, and what I caleld a halt at was running one, up to the point in a file where a particular and absolutely reliable line of text occurs, then saving the filtered text _before that_ and appending the text _after it_ filtered through the second expression. Fascinating stuff in these text filtering tools.
Sounds liek you jsut want to do it all in perl. Care to pose question? Steve -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.