bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

at which byte do two strings differ


From: Nathan Coulter
Subject: at which byte do two strings differ
Date: Tue, 06 May 2008 01:53:41 -0400
User-agent: Thunderbird 1.5.0.14 (Windows/20071210)

Looking for a simple ways to output the byte at which two strings differ. Here is one:

cmp <(echo "hello") <(echo "help") | cut -d' ' -f5 | tr -d ,

Any other suggestions?

--
Yorick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]