<br><br><div class="gmail_quote">On Fri, Mar 28, 2008 at 9:37 AM, Mário Gamito <<a href="mailto:gamito@gmail.com">gamito@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">
Well, my question now is, how do I get the word 'gamito' alone from the file ?<br>
<br>
Any help would be appreciated.<br>
<br></div></blockquote></div><br>What are you really trying to do?<br><br>grep 'gamito' file and <br>grep -c 'gamito' file   will tell you if it is present.<br>grep -n 'gamito' file   will tell you which line(s) it is on.<br>
grep -o 'gamito' file   only gives you the word 'gamito' is in or not.<br>grep -C3 'gamito' file   should give 3 context lines<br><br>There are also sed and awk commands which might be useful.<br>But the real answer depends on what you will do with the info.<br>
<br>-Bob <br>