好词典

sed

UK //sed//US //sed//

词源

源自 'stream editor' 的缩写,最早出现在 Unix 系统中。

noun

❶ 一种用于文本处理的强大命令行工具,主要用于对文本文件进行查找、替换、删除等操作。

“Use sed to replace all occurrences of 'foo' with 'bar' in the file.”

(使用 sed 将文件中所有的 'foo' 替换为 'bar'。)

“The sed command can delete specific lines from a text file.”

(sed 命令可以从文本文件中删除特定的行。)

同义词:stream editor, text processor

常见短语

sed command — 指在 Unix/Linux 系统中使用的 sed 工具的具体命令,用于执行文本编辑任务。

“The sed command 's/old/new/g' replaces all 'old' with 'new' in the file.”

(sed 命令 's/old/new/g' 会将文件中所有的 'old' 替换为 'new'。)