RE: ** UNIX shell -- grep behavior different

From: <rajendra.pande_at_ubs.com>
Date: Fri, 26 Nov 2010 09:17:00 -0500
Message-ID: <D4C8B99EB96F2C42B4E19A3B87664F5E4F70C0_at_NSTMC612PEX.ubsamericas.net>



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: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Jared Still Sent: Friday, November 26, 2010 1:27 AM
To: ajoshi977_at_yahoo.com
Cc: oracle-l_at_freelists.org
Subject: Re: ** UNIX shell -- grep behavior different

Assisting with troubleshooting is much easier with a reproducible example.

On Thursday, November 25, 2010, A Joshi <ajoshi977_at_yahoo.com> 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
>
>
>
>
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
Oracle Blog: http://jkstill.blogspot.com
Home Page: http://jaredstill.com
--
http://www.freelists.org/webpage/oracle-l


Please visit our website at 
http://financialservicesinc.ubs.com/wealth/E-maildisclaimer.html 
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.
--
http://www.freelists.org/webpage/oracle-l
Received on Fri Nov 26 2010 - 08:17:00 CST

Original text of this message