Mahieux Dimitri wrote: > Hello, > > I would know if it is possible with grep to match a exact string. For > example, I want to match the string "DP2" (and only this) and grep match > "DP2BS" too. > I have sought in the grep help but I didn't find what I want. > "^DP2$" could be what you are looking for, although I wonder why you didn't just test for equality with == in the first place. Also, word matching as in "\\<DP2\\>" could be relevant.
-- O__ ---- Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
