亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: sed 中 ‘D’操作的疑惑 [打印本頁(yè)]

作者: smallpboy    時(shí)間: 2013-04-06 13:50
標(biāo)題: sed 中 ‘D’操作的疑惑
   好久沒(méi)來(lái)cu逛了。有點(diǎn)不好意思發(fā)帖了。估計(jì)我這個(gè)又是個(gè)月經(jīng)貼。廢話不多說(shuō),疑惑如下:
  1. sed ‘/\n/!G;s/\(.\)\(.*\n\)/&\2\1/;//D;s/.//;’
復(fù)制代碼
命令實(shí)現(xiàn)的是rev命令的功能。

sed命令中“//D” 匹配的是什么?

“//”  匹配什么字符? 非‘\n’字符么?
作者: L_kernel    時(shí)間: 2013-04-06 15:06
smallpboy 發(fā)表于 2013-04-06 13:50
好久沒(méi)來(lái)cu逛了。有點(diǎn)不好意思發(fā)帖了。估計(jì)我這個(gè)又是個(gè)月經(jīng)貼。廢話不多說(shuō),疑惑如下:命令實(shí)現(xiàn)的是rev ...
The empty regular expression ‘//’ repeats the last regular expression match (the same holds if the empty regular expression is passed to the s command). Note that modifiers to regular expressions are evaluated when the regular expression is compiled, thus it is invalid to specify them together with the empty regular expression.
來(lái)自info sed的引用。




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2