Re: Grep Question

From: Green, Simon (Simon.Green@EU.ALTRIA.COM)
Date: Wed Mar 03 2004 - 05:17:46 EST


As others have pointed out, you may wish to escape the "." in your grep.

However, as it stands it should still find the string so you may have
another problem.

When you create the file, are you using "... > output.file" or "... >>
output.file" ? The first will over-write the file, the second will
concatenate to it, (depending on exactly how the script is coded). Just a
guess, of course.

--
Simon Green
Altria ITSC Europe Ltd
AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
N.B. Unsolicited email from vendors will not be appreciated.
Please post all follow-ups to the list.
> -----Original Message-----
> From: Kumar, Praveen (cahoot) [mailto:Praveen.Kumar@CAHOOT.COM]
> Sent: 02 March 2004 19:34
> 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.


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