sed 前後加文字 sed -i -e ‘s/^/lfs_migrate -y /’ scratch.txt 在每一行前面加入 lfs_migrate -y sed -i -e ‘s/$/ \&/’ scratch.txt 在每一行後面加入 & 符號 Leave a ReplyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Δ This site uses Akismet to reduce spam. Learn how your comment data is processed.
Leave a Reply