sed 前後加文字

sed -i -e ‘s/^/lfs_migrate -y /’ scratch.txt

在每一行前面加入 lfs_migrate -y

sed -i -e ‘s/$/ \&/’ scratch.txt

在每一行後面加入 & 符號