Rants, Raves, and Rhetoric v4

Diff and Spaces

Amy’s dump of the CE/Vista settings table ended up with a slightly different format than mine. I was able to use sed to rejoin the correct lines. This resulted in two files with spaces on about half of the lines in the file. Ouch.

Thankfully diff has a -b flag to ignore the spaces. Really useful in this case.

Now… To figure out why a pattern I copy and paste from a file is not found with grep.


2 responses to “Diff and Spaces”

  1. Mark Avatar

    ‘cat -vet’ is your buddy 🙂

  2. Script to get the number of events from the logs. « Amit Agarwal

    […] Diff and Spaces (ezrasf.com) Sharevar el = document.getElementById('share-link-1096737594');el.params = {title: 'Script to get the number of events from the logs.', link: 'http://blog.amit-agarwal.co.in/2010/01/27/script-to-get-the-number-of-events-from-the-logs/', skin: 'blue', content: 'http://blog.amit-agarwal.co.in/?ibsa=get_content&id=1531'}; Sphere: Related Contentrelated post […]

Leave a Reply

%d bloggers like this: