Sed Command to Delete Lines: Sed command can be used to delete or remove specific lines which matches a given pattern or in a particular position in a file. Here we will see how to delete lines using sed command with various examples.
2篇 sed 相关的文章
sed: 1: "xxx.cfg": command a expects \ followed by text
github上的原文：sed command with -i option failing on Mac, but works on Linux
This works with both GNU and BSD versions of sed:
sed -i'' -e 's/old_link/new_link/g' *
or with backup:
sed -i'.bak' -e 's/old_link/new_link/g' *