I was wondering how can I get the string between the first two ";" with sed in Bash..
for example:
input:
END; startprocess -noprint; CWD: 8995; RUID: nmsadm; EUID: nmsadm; ERRCODE: 0;
output:
startprocess -noprint
cut
to the rescue:
cut -d';' -f2
$ cut -d';' -f2 <<< "END; startprocess -noprint; CWD: 8995; RUID: nmsadm; EUID: nmsadm; ERRCODE: 0;"
startprocess -noprint