'echo "" > filetowipe' would be a new file, I want to edit the same file.
I don't want to crash my desktop again. I think the fact that ex creates .swp and .swo files might contribute to the problem. - Enda ________________________________ From: Gary Johnson <[email protected]> To: [email protected] Sent: Monday, July 30, 2012 6:09 PM Subject: Re: ex large file On 2012-07-30, Enda wrote: > Is there a way to empty the contents of a large file? The below doesn't work: > > > $ ex -s largefile -c '1,$d' -c wq > > Killed I don't know why that is failing. Ben had some good questions. But if you just want to empty the file, use this from your shell: $ > largefile Regards, Gary -- 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 -- 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
