So, I've been googling around, and also searching in more detail on stack overflow, but I just can't seem to find an easy way of doing exactly this:
I want to know in what way two strings (without whitespace) differ, and simply print what that exact difference is.
E.g.:
Input 1 > "Chocolatecakeflavour"
Input 2 > "Chocolateflavour"
Output: "cake"
I've tried doing this with diff and dwdiff, cmp, and other known bash commands that popped into mind, but I just couldn't get this exact result.
Any ideas?