Find diff between two patterns in two files and append

view full story

http://www.unix.com – Hi, I'm a newbie at programming in Unix, and I seem to have a task that is greater than I can handle. Trying to learn awk by the way (but in the end, i just need something that works). My goal is to compare two files and output the difference between the two. I've been reading, and I think I could do a line-by-line comparison, but I don't really understand how I could do this if the lines are not aligned. I learned how to do a pattern search too, but I don't know how to compare patterns. Diff function gives me the differences, cool. However, what I want is to compare text between two patterns (HowTos)