【发布时间】:2016-10-13 03:27:53
【问题描述】:
我有一行文本文件包含这个:
$gVER = "4.027.160921.1";
如何在 linux 中使用 cut 删除 double quotes 以及最后一个 (;),我只想输入数字值。我已经尝试过的是:
exec( "cat /web/FunctionInit.inc.php | grep gVER | cut -d \"=\" -f2"
当我使用这段代码时,结果是:
"4.027.160921.1";
如何使用cut linux分隔double quotes和最后一个(;)?
【问题讨论】: