Re: Grep Question

From: Alexandre Sato (alexandre.sato@BR.ABNAMRO.COM)
Date: Tue Mar 02 2004 - 15:02:00 EST


Are you doing something like this?

cat file.txt | grep 82.44.203.222.82681071601925321 > file1.out

or

grep 82.44.203.222.82681071601925321 file.txt > file1.out

In any case you think any char is making a diference in grep command, put
the string into double quotes, like this:

cat file.txt | grep "82.44.203.222.82681071601925321" > file1.out

or

grep "82.44.203.222.82681071601925321" file.txt > file1.out

Regards,

Alexandre Sato.

"Kumar, Praveen (cahoot)" <Praveen.Kumar@CAHOOT.COM>
Sent by: IBM AIX Discussion List <aix-l@Princeton.EDU>
03/02/04 04:33 PM
Please respond to IBM AIX Discussion List

        To: aix-l@Princeton.EDU
        cc:
        Subject: Grep Question

Hi *,
       I want to search for a string (82.44.203.222.82681071601925321)
from
a file. i have around 150 similar number , so i am using a script to do
this...my script does not create file even after redirecting...can some
let
me know where am i failing.

i think when i am doing grep it takes .(dot) in the literal meaning.

TIA
Praveen

---------------------------------------------------------------------------
This message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change.
ABN AMRO Bank N.V. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. ABN AMRO Bank N.V. (or its group companies) does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference.
---------------------------------------------------------------------------



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:39 EDT