diffing special chars
Rod Roark
rod@sunsetsystems.com
Thu, 24 Aug 2000 07:32:11 -0700
Not sure I understand the question, but perhaps "diff -a" would be
helpful. Also "sed s/old/new/ ..." is not too ugly.
Cheers,
-- Rod
http://www.sunsetsystems.com/
On Wed, 23 Aug 2000, you wrote:
> moin, moin,
>
> doing a couple of filesystems lists and then diffing them to make sure
> they contain the same files. I'm running into a prob with files that have
> either special chars or spaces embedded in the name/path.
>
> find wants to turn special chars into gobbly-gook, whereas tar renders the
> escapes sequences. Use ls -b to turn the special chars into escape
> sequences it also adds escapes for spaces, which tar doesn't do.
>
> Either of these probs trips up diff when verifying that the file lists are
> the same.
>
> Anyone know a solution that doesn't require brute forcing with tools like
> perl or sed/awk?