guys,
my requirment goes like this:
I have a file, and wish to filter out records where
1. The first letter is o or O
and
2. The next 4 following letter should not be ther
I do not wish to use pipe and wish to do it in one shot.
The best expression I came up with is:
grep ^[oO][^tT][^hH][^eE][^rR]* test1
But with this there is a problem if the word is beginning with o and less then 4 letters it excludes those.
Thanks in advance to the R.E gurus
rishi