On Jan 8, 5:55 am, Marco <[email protected]> wrote: > Try it without vim: > > cat input_file | nl | tail -1 | cut -f1 >>no_of_lines && > echo >> no_of_lines && > cat input_file >> no_of_lines
Or:
file=10_gb_file
sed -i "1{s/.*/$(<$file wc -l)\n&/}" $file
--
Jeenu
--
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
