|
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
[Prev in Thread] | Current Thread | [Next in Thread] |