Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-13-2008
nivas
Guest
 

Posts: n/a
Bits: 0 [Banking]
Shell Programming and Scripting

Hi

Iam using grep command as follows in my script

read_file1()
{
cat file1.txt | while read line
do
grep $line file2.txt >> out.txt
done
}
read_file1

This way the performance is very slow. We are having lacks of records in file1 and file2

how can i improve the performance.
Sponsored Links