e
This command allows one to pipe input from a shell command into pattern space. If a substitution was made, the command that is found in pattern space is executed and pattern space is replaced with its output. A trailing newline is suppressed; results are undefined if the command to be executed contains a nul character. This is a GNU sed extension.
sed "s/.*/expr & + 1/e" a.log
expr: 语法错误
expr: 语法错误
expr: 语法错误
expr: 语法错误
...
yangyang1581 发表于 2011-06-29 12:48
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |