Monday, July 30, 2012

Re: ex large file

On Monday, July 30, 2012 1:24:31 PM UTC-5, Gary Johnson wrote:
>
>
> > 'echo "" > filetowipe' would be a new file, I want to edit the same file.
>
>
>
> I'm not following you. I didn't suggest redirecting to a new file.
>
> I suggested redirecting to the same file name you used in your
>
> example. Further, I didn't suggest using echo--I suggested simply
>
> this command (shown this time without the shell prompt):
>
>
>
> > largefile
>
>
>
> where 'largefile' is the name of the file you wish to empty.
>
>
>


That's partially my fault for using a different file name in my example. I thought it would be fairly obvious what I was doing. I *did* use echo because I didn't realize you could do without it. I meant to use Tony's cp /dev/null method instead but couldn't remember the exact path off the top of my head (I'm still not very good at Unix).

--
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

No comments: