bug-bash
[Top][All Lists]
Advanced

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

finding the index at which two strings differ


From: Poor Yorick
Subject: finding the index at which two strings differ
Date: Tue, 06 May 2008 18:53:22 +0000

Looking for a simple ways to output the index 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]