RE: ** UNIX shell -- grep behavior different

From: <>
Date: Fri, 26 Nov 2010 09:17:00 -0500
Message-ID: <>

As always check how many versions of grep you have in default path vs the script path. If there are aliases defined  

-----Original Message-----
From: [] On Behalf Of Jared Still Sent: Friday, November 26, 2010 1:27 AM
Subject: Re: ** UNIX shell -- grep behavior different

Assisting with troubleshooting is much easier with a reproducible example.

On Thursday, November 25, 2010, A Joshi <> wrote:
> hi
>  I have a UNIX shell script that populates a file and then does grep on it. in the shell script it is missing some lines that has the grep string.
> from interactive UNIX session grep I get bigger and  right list. I am using the same exact grep that is in the UNIX shell script. only difference is in the shell script file name is referred to as $flist
> I'm submitting shell script as nohup
> I checked everything. I tried removing the file and re-create.
> it is strange. can someone help. TIA
> --

Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
Oracle Blog:
Home Page:

Please visit our website at 
for important disclosures and information about our e-mail 
policies. For your protection, please do not transmit orders 
or instructions by e-mail or include account numbers, Social 
Security numbers, credit card numbers, passwords, or other 
personal information.
Received on Fri Nov 26 2010 - 08:17:00 CST

Original text of this message