edit file text

Modifico ogni riga inserendo firstword come prima parola e lastword come ultima parola:

sed ‘s/^/firstword/g;s/$/lastword/g’ changefile.txt

da vi posso :

%s/^/firstword/g
%s/$/lastword/g

edit file text

Leave a Reply

Your email address will not be published. Required fields are marked *