I\'m trying to find a way to determine the difference between two strings in my script. I could easily do this with diff or comm, but I\'m not dealing with files and I\'d pr
Say you have three strings
a="this is a line" b="this is" c="a line"
To remove prefix b from a
echo ${a#"$b"} # a line
To remove suffix c from a
echo ${a%"$c"} # this is