The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 07-12-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by lok
Thanks vino.
One more question need ur help.

I write two while loop.
Can i know how to exit the second loop and go back to first loop. What is the exit status code??
i've tried 0 1 2 3 4, but it can't works.
Are you talking about nested while loops ?


Code:
while read file1line
do
  while read file2line
  do
    echo "$file1line $file2line"
    break 1
  done < file2
done < file1