HP3000-L Archives

November 1998, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Dunlop <[log in to unmask]>
Reply To:
John Dunlop <[log in to unmask]>
Date:
Wed, 4 Nov 1998 17:00:39 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
Mark Bixby replied:

> POSIX to the rescue:
>
>         grep -v '^[0-9A-Z ]*$' DATAFILE
>
> This says select all lines that are not (-v) consisting of multiple (*)
> digits (0-9), uppercase letters (A-Z), and spaces ( ) from the start of the
> line (^) through the end of the line ($).
>
> POSIX regular expression pattern matching (regexp) packs a lot of power in
> just a few characters.
>
> For full regexp documentation, go into sh.hpbin.sys and say "man regexp".

Thank you , Mark. I was hoping someone would come up with some
POSIX/grep/awk type syntax (of which I am ignorant) as a solution. I
am liking Posix more and more !

Cheers,

--
John Dunlop

E-mail : [log in to unmask]
Web  : http://homepages.tcp.co.uk/~jdunlop/
"All your HP3000 resources on the Net"

ATOM RSS1 RSS2