Added --head option to icdiff

August 2nd, 2010
icdiff, programming, tech
Often when diffing two files I know there are going to be a lot of differences, and I just want some examples. Instead of waiting for icdiff to run on a whole file, I used to run something like:
$ icdiff <(head -n 20 a.txt) <(head -n 20 b.txt)
This works fine, but is annyoying to type. To fix this, I added a --head option to icdiff:
$ icdiff --head 20 a.txt b.txt
Get it on github: icdiff

Comment via: facebook

Recent posts on blogs I like:

Where I Donated In 2024

All Grants Fund, Rethink, EA Funds Animal Welfare Fund

via Thing of Things January 17, 2025

2024-25 New Year review

This is an annual post reviewing the last year and setting intentions for next year. I look over different life areas (work, health, parenting, effectiveness, travel, etc) and analyze my life tracking data. Overall this was a pretty good year. Highlights …

via Victoria Krakovna January 15, 2025

The ugly sides of two approaches to charity

What's neglected by "magnificent" philanthropy, and by Singerian global poverty focus The post The ugly sides of two approaches to charity appeared first on Otherwise.

via Otherwise January 13, 2025

more     (via openring)