Re: help : cat help | grep '^99\d' don't work
- From: "Chris F.A. Johnson" <cfajohnson@xxxxxxxxx>
- Date: Fri, 1 Dec 2006 23:48:26 -0500
On 2006-12-02, key9 wrote:
hi all
I have an file:
980<tab>980
981 981
982 982
983 983
984 984
985 985
986 986
987 987
988 988
989 989
990 990
991 991
992 992
993 993
994 994
I hope I can using "^99\d" to list 99x
or using "^992\t" to list "992"
but that don't work , why?
I have tried using [\d]... , no use.
grep '^99[0-9]'
grep '^992'
--
Chris F.A. Johnson, author <http://cfaj.freeshell.org/shell>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
.
- Follow-Ups:
- References:
- help : cat help | grep '^99\d' don't work
- From: key9
- help : cat help | grep '^99\d' don't work
- Prev by Date: Re: sed and Auuuugghh!!!!
- Next by Date: Re: Merge all Lines into one?
- Previous by thread: help : cat help | grep '^99\d' don't work
- Next by thread: Re: help : cat help | grep '^99\d' don't work
- Index(es):
Relevant Pages
|