I have a string in the next format
id;some text here with possible ; inside
and want to split it to 2 strings by first occurrence of the ;
. So, it should be: id
and some text here with possible ; inside
I know how to split the string (for instance, with cut -d ';' -f1
), but it will split to more parts since I have ;
inside the left part.
id
andstring
– gakhov Oct 30 '12 at 13:07