Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: mhbjr
  • Content: Threads
  • Order by date
  1. mhbjr

    sed in a for loop

    I need help! I am trying to use sed in a for loop and does not seem to be working correctly. If I have a file called file2 that contains: Field: LOAN_DATE and I do: i="loan_date" sed -i "s/${i}/${i}/I" file2 This works replacing LOAN_DATE with loan_date The problem is when I put this in a...
  2. mhbjr

    Compare file1 and file2 replacing field in f2 ignoring case

    Thanks for any help. I have 2 files and I am reading in the second file and reformating it with output going to a third file. My problem is I need to read the first file and compare with second file and if data in a field matches I need to replace it with the data from the first file. The...

Part and Inventory Search

Back
Top