George V. Reilly

Diff a Transformed File

I wanted to diff two files. One of them needed some seds on each line and sorting. I wanted to do that on the fly, without leaving a massaged in­ter­me­di­ate file lying around.

colordiff --unified <(cat orphaned_permalinks.txt
                        | sed 's@http://www.georgevreilly.com/@@'
                        | sed 's/.aspx$/.html/'
                        | sort)
        links.txt | less -R
blog comments powered by Disqus
LKRhash: Scalable Hash Tables » « Review: Death of a Red Heroine