On 01/08/2011 05:53 PM, Ben Fritz wrote:
Note: If anyone is interested in WHY I'm doing this, I need to open
the file, figure out how many lines it has, and write that number in
the first line of the file. In this case I need to write "231478708"
plus a return.

I think a lot of people missed your "on Windows" part, suggesting Unix
tools for use.

Since the OP already knows the number to write at the front of the file, one could do

 c:\wherever> copy con+source_file.txt dest_file.txt
 231478708
 ^Z
 source_file.txt
       1 file(s) copied

(where the number is typed, followed by <enter> followed by control+Z)

which will create "dest_file.txt" from the mashing-together of the typed pseudo-file and the original source_file.txt

-tim


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to