View Single Post
Join Date: Apr 2006
Posts: 148
Reputation: ghostdog74 is on a distinguished road 
Solved Threads: 39
ghostdog74 ghostdog74 is offline Offline
Junior Poster

Re: Unixx shel script - combing information from 2 files into one useing looping structur

 
0
  #10
Apr 10th, 2008
have you read the line i gave about while loops? pseudocode.
Shell Scripting Syntax (Toggle Plain Text)
  1. while read -r name number
  2. do
  3. while read -r NAME NUM
  4. do
  5. if NAME is equal name
  6. then
  7. echo name NUM number
  8. done < "file2"
  9. done < "file1"
Reply With Quote