Thread
:
How to append text to second line of a file
View Single Post
#
15
(View Single Post)
8th November 2010
thirdm
Spam Deminer
Join Date: May 2009
Posts: 248
Quote:
Originally Posted by
BSDfan666
There is no right way to do things, it's just a matter of preference.. use what's available.
emacs --batch -Q --file file.dat --eval '(when (zerop (forward-line)) (end-of-line) (insert " 2") (save-buffer))'
thirdm
View Public Profile
Find all posts by thirdm