SUMMARY: Grep for pattern

From: pa fot <paf1972_at_hotmail.com>
Date: Wed Aug 15 2001 - 20:57:54 EDT
Thank you everyone for all your repsonses and I apologize for the simplicity 
of this question. Here's some of the responses:


grep "G\.[0-9][0-9]*" filename
egrep -e 'G\.[0-9]'
grep "G\.[0-9][0-9][0-9][0-9][0-9]"
egrep usually has a better RE collection but:
awk '/G\.[0-9]{5} {print}'
perl -ne 'print if /G\.\d{5}/'

Thanks again everyone.

Paul




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Received on Thu Aug 16 01:57:54 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:25:01 EDT