我想知道如何在前两个之间得到字符串";" 与Bash中的sed ..
例如:
输入:
END; startprocess -noprint; CWD: 8995; RUID: nmsadm; EUID: nmsadm; ERRCODE: 0;
Run Code Online (Sandbox Code Playgroud)
输出:
startprocess -noprint
Run Code Online (Sandbox Code Playgroud)
cut 救援:
cut -d';' -f2
Run Code Online (Sandbox Code Playgroud)
$ cut -d';' -f2 <<< "END; startprocess -noprint; CWD: 8995; RUID: nmsadm; EUID: nmsadm; ERRCODE: 0;"
startprocess -noprint
Run Code Online (Sandbox Code Playgroud)