View Single Post
  #3 (permalink)  
Old 05-09-2008
Northerner Northerner is offline
Registered User
 

Join Date: May 2008
Location: Sheffield
Posts: 10
Got the following result

cat file1.txt | while read line
while: Expression syntax.

from

#!/bin/ksh

cat file1.txt | while read line
do
JOBNAME=$(echo ${line} | awk '{print $3}')
LINE2=$(grep -w $JOBNAME file2.txt)
echo "$line $LINE2" >> file3.txt
done
Reply With Quote