如果xargs将要执行的命令包含有替换字符串,那么将使用参数替换它。
Wherever the replacement string occurs in the command you ask xargs to execute, it will be replaced by an argument.
replace函数采用了三个参数:第一个参数是要修改的文本,第二个参数是与将要替换的部分匹配的正则表达式,第三个参数是替换字符串。
The replace function USES three arguments: the first is the text to modify, the second is the regular expression that matches the part to be replaced, and the third is the replacement string.
应用推荐