Linux command:
cp a tmp.txt
vi tmp.txt
vi command:
(cursor at 1 line before begining of where we want to copy) d1G
(cursor at 1 line after end of where we want to copy) dG
:x
Now tmp.txt contains only the part we want.
Linux command:
vi b
(cursor at where we want to paste) :r tmp.txt
有點笨的作法, 但google了一下, 我只會這個....
全站熱搜