Hello all,
I think this is an easy question to answer, but I can't seem to figure it out. 'sed' is for files, not variables...
I get:
Code:
<myfile>: text/x-c++; charset=iso-8859-1
as output, the result of
I've stored this little result ("<myfile>: text/x-c++; charset=iso-8859-1") into a variable and would like to get yet another variable which contains the string "iso-8859-1" only (length may vary depending on the encoding), in other words, to extract the part of the string that follows "charset=" up until the end ot the string. It seems simple, but I just can't figure it out!
Thanks in advance,
rm