Hello Experts,

Im trying to extract the words ending with .V or .TO  from the following
list

AVWI.OB 
AVX     
AVX-P.V
AVXT.OB 
AVY     
AVZ
AVZ.TO
AW
AWB.V
AWBC
AWC
AWF
AWG
AWX.V
AXA

Im new to grep/regexp, Im breaking my head trying to figure out wot would be
the righ grep command for that ...

I tried the following options , but im not able to construct the correct
regular expression 

$ grep -o '[ A-Z][a-z].V' StockList30.txt
$ grep -o '[ A-Z][a-z].TO' StockList30.txt

Plz help me out in constructing the right grep command to retrieve words
ending with .V  or  .TO.


Thx in advance.

Regards
Swiftguy
-- 
View this message in context: 
http://www.nabble.com/GREP---reg-exp-to-find-words-ending-with-.V-and-.TO-tf2863360.html#a8001717
Sent from the Gnu - Grep mailing list archive at Nabble.com.



Reply via email to