diffing special chars

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: shadoi@soulmachine.com
Date:  
Subject: diffing special chars
Maybe piping the output from ls -b or find to tr with some options would do the trick.. Maybe using grep to pull out only the ones you want to fix for speed..

* Blake

On Wed, Aug 23, 2000 at 11:12:56PM -0700, der.hans 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?
>
> ciao,
>
> der.hans
> --
> # home.pages.de/~lufthans/ www.Opnix.com
> # Two roads diverged in a wood, and I --
> # I took the one less traveled by,
> # And that has made all the difference. -- Robert Frost
> # I, OTOH, prefer to just go stomping through the desert... - der.hans
>
>
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
>
> Plug-discuss mailing list -
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss