返回命令列表

Linux command

Search and replace in files

文本

Copy it and replace filenames, paths, or keywords as needed.

命令示例

Search and replace in files

sed -i 's/old/new/g' *.txt

说明

Useful Linux one-liner

FAQ

What is the sed command used for?

Useful Linux one-liner

How do I run a basic sed example?

Run `sed -i 's/old/new/g' *.txt` in a terminal, then adjust file names, paths, flags, or remote targets for your system.