sed进行行首行末字段的追加

mac2024-06-18  53

 

一行行首追加字符串

sed 's/^/string&/g' test.txt

 

一行行末追加字符串:

sed 's/$/string/g' test.txt

最新回复(0)