Re: Grep Question

From: Scott Purkerson (spurkerson@DOIT.NV.GOV)
Date: Tue Mar 02 2004 - 15:09:59 EST


If you're concerned about searching for a literal '.', you must escape the character:

    grep '82\.44\.203\.222\.82681071601925321' *

Otherwise, the '.' will mean any character (including '.').

You might want to post that portion of your script so someone can better help you with the redirection. It's either not finding your search string and/or erroring out.

tnx-

-----Original Message-----
From: Kumar, Praveen (cahoot) [mailto:Praveen.Kumar@CAHOOT.COM]
Sent: Tuesday, March 02, 2004 11:34 AM
To: aix-l@Princeton.EDU
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

*********************
Internet communications are not necessarily secure and may be intercepted or
changed after they are sent. cahoot does not accept liability for any such
changes.
If you wish to confirm the origin or content of this communication, please
contact the sender using an alternative means of communication.

This communication does not create or modify any contract.

This email may contain confidential information intended solely for use by
the addressee. If you are not the intended recipient of this communication
you should destroy it without copying, disclosing or otherwise using its
contents.

Please notify the sender immediately of the error.

cahoot is a division of Abbey National plc.
Abbey National plc is registered in England, registered number 2294747.
Registered Office: Abbey National House, 2 Triton Square, Regent's Place,
London, NW1 3AN.



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