Re: at which byte do two strings differ

2008-05-06 Thread Stephane CHAZELAS
2008-05-06, 01:53(-04), Nathan Coulter: > 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? I'd suggest you fix the locale to being C for more portable results.

Re: at which byte do two strings differ

2008-05-06 Thread Dave B
On Tuesday 6 May 2008 07:53, Nathan Coulter wrote: > 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? I can't see how this pertains to gnu.bash.bug, however try t

at which byte do two strings differ

2008-05-05 Thread Nathan Coulter
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