- 论坛徽章:
- 780
|
回复 20# shenyue_sam
info sed里有,简单说,就是调用一个shell命令,用结果来替换模式空间的内容。
- e (evaluate) command: Extended Commands.
- `e [COMMAND]'
- This command allows one to pipe input from a shell command into
- pattern space. Without parameters, the `e' command executes the
- command that is found in pattern space and replaces the pattern
- space with the output; a trailing newline is suppressed.
- If a parameter is specified, instead, the `e' command interprets
- it as a command and sends its output to the output stream (like
- `r' does). The command can run across multiple lines, all but the
- last ending with a back-slash.
- In both cases, the results are undefined if the command to be
- executed contains a NUL character.
复制代码 |
|