t3h*_*man 25 unix sed file sh
如何删除sh中以"string"开头的文件中的所有行?我在考虑使用sed命令.
Mar*_*c B 31
grep -v '^string' yourfile.txt > stripped.txt
Wil*_*ell 27
要做到这一点,如果你的sed支持-i选项,你可以这样做:
sed -i '/^string/d' input-file
归档时间:
14 年,7 月 前
查看次数:
35966 次
最近记录:
9 年,7 月 前