【文件属性】:
文件名称:sed命令详解
文件大小:22KB
文件格式:DOCX
更新时间:2021-05-26 13:37:24
sed
sed - stream editor for filtering and transforming text
SYNOPSIS
sed [OPTION]... {script-only-if-no-other-script} [input-file]...
DESCRIPTION
-n, --quiet, --silent 不输出模式空间中内容
suppress automatic printing of pattern space
-e script, --expression=script 多点编辑模式
add the script to the commands to be executed
-f script-file, --file=script-file 从文件读取脚本,每行一个编辑命令
add the contents of script-file to the commands to be executed
-i[SUFFIX], --in-place[=SUFFIX] 直接在原文件编辑
edit files in place (makes backup if SUFFIX supplied)
-r, --regexp-extended 在脚本中使用扩展正则表达式
use extended regular expressions in the script.