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@'
                        | sed 's/.aspx$/.html/'
                        | sort)
        links.txt | less -R
blog comments powered by Disqus
LKRhash: Scalable Hash Tables » « Review: Death of a Red Heroine