Given these two strings:
"12345"
"1245"
Where the first one is the complete string and the second has things missing from the first, I want it to return "3".
So again with:
"The ball is red"
"The is red"
I want to to return "ball"
I've tried diff with:
diff <(echo "12345") <(echo "1245")
But diff isn't giving the desired output. comm doesn't do what I want either.