[英]Linux, How to using cut command with delimiters double quote?
i have aa line of text file contain this :我有一行文本文件包含这个:
$gVER = "4.027.160921.1";
how to using cut in linux to delete double quotes
and also the last (;), i just want to put the numbers value only.如何在linux中使用cut来删除
double quotes
和最后一个(;),我只想把数字值。 what i already try is this :我已经尝试过的是:
exec( "cat /web/FunctionInit.inc.php | grep gVER | cut -d \"=\" -f2"
when i using this code the result is :当我使用此代码时,结果是:
"4.027.160921.1";
how to delimiters double quotes
and the last (;) using cut linux?如何使用cut linux分隔
double quotes
和最后一个(;)?
这对你有用
echo '"4.027.160921.1";' | cut -d'"' -f 2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.