Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Thanks all for your replies.
But have tried with -w & -x option keeping pattern in quotes. its gives same thing.
My command knows pattern in which version 1.2.1.2 is not known.
At this point is not clear what is the result you expect. Please, can you post the input file (or a relevant part of it) and the desired result? Use CODE tags to preserve the original formatting of the file (spacing, indentation and so on). Thanks.
Like colucix said, more information would be nice.
Without knowing the layout of the file you are trying to get this data from, you could use awk to do:
Last edited by joeBuffer; 07-31-2009 at 10:17 AM.
Reason: I messed my post all up, thinking that you had posted you were trying to match the line with ....b2c.prod 1.2.2.1 in it.
I want output as -
titan/WEB-INF/resources/mmt_engine.properties 1.2.2.1
So constant pattern known is – “titan/WEB-INF/resources/mmt_engine.properties” not version !!
So I should be able to do something like-
>>grep "titan/WEB-INF/resources/mmt_engine.properties" a--- how????
o/p
titan/WEB-INF/resources/mmt_engine.properties 1.2.2.1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.