带双s的Sed表达式
请用以下语言解释sed表达式:带双s的Sed表达式,sed,Sed,请用以下语言解释sed表达式: PACKAGE=`grep package $MANIFEST_FILE | sed 's/.*package="//;s/".*//'` 我无法理解这一部分: //;s/ 实际上,您有两个sed替换命令,由分隔: s/.*package="// # replace anything on the line before 'package=' string + string s/".*//'` # replace " and all the r
PACKAGE=`grep package $MANIFEST_FILE | sed 's/.*package="//;s/".*//'`
我无法理解这一部分:
//;s/
实际上,您有两个sed替换命令,由
分隔代码>:
s/.*package="// # replace anything on the line before 'package=' string + string
s/".*//'` # replace " and all the rest of the line after this character