The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 05-26-2009
lightdensity lightdensity is offline
Registered User
  
 

Join Date: May 2009
Posts: 6
Quote:
Originally Posted by BubbaJoe View Post
Your IFS is set wrong. THe IFS="" says there is no separator so the whole file is read. You can only use IFS is there is actually a seperator between each field. So cat $FILE will not give you line by line it will give you the while file as a field at once. Hence only matching 1 time. Since you really want look at each line as a record you should use awk or sed to find and replace the text.
thanks for help..

so what if i set
IFS="\n\t"

than i guess, cat $FILE will give line by line..

ok!! i will try it out.. meanwhile could you check my remaining code.. and tell whether my code is correct or not.

thanks