Theo Pepler
Home | Research | Teaching | Software | Links | HOWTO'sHOWTO: CHECK DIFFERENCES BETWEEN TWO TEXT FILES USING THE COMMAND LINE
- Use the following code:
diff -u file1 file2 | sed -n '1,2d;/^[-+]/p'
where file1 and file2 are the names of the two files to be compared.