RE: ** UNIX shell -- grep behavior different

  • From: <rajendra.pande@xxxxxxx>
  • To: <jkstill@xxxxxxxxx>, <ajoshi977@xxxxxxxxx>
  • Date: Fri, 26 Nov 2010 09:17:00 -0500

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@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Jared Still
Sent: Friday, November 26, 2010 1:27 AM
To: ajoshi977@xxxxxxxxx
Cc: oracle-l@xxxxxxxxxxxxx
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@xxxxxxxxx> 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
>
>
>
>
>
> --
> //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
--
//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.
--
//www.freelists.org/webpage/oracle-l


Other related posts: