[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ignore chars with GNU diff
From: |
Paul Jarc |
Subject: |
Re: ignore chars with GNU diff |
Date: |
Fri, 24 Sep 2004 15:15:05 -0400 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
haskins_gary@yahoo.com (Gary Haskins) wrote:
> I am looking for a diff option which allows me to ignore chars 'at
> offset for length' or 'from begin offset to end offset'.
If your shell has process substitution:
diff <(cut-c 17-42 file1) <(cut -c 17-42 file2)
If not, you can get the same effect with temporary files or, if your
OS has them, /dev/fd/* paths with pipes and redirections.
paul