Carl Johnson on 27 Feb 2012 17:16:20 -0800

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] VI without a swapfile?

why not a sed one liner with a regex?

Sent from my Motorola DynaTAC 8000x

Gary Duzan <> wrote:

>In Message <>,
>   Jeff Bailey <>wrote:
>=>Without getting into all the gory details, I have a loopback
>=>mounted (a file containing a filesystem) which is considered 100%
>=>(according to "df").
>=>I need to edit a file on that mount.  "vi" complains about not being 
>=>able to create a swapfile, but allows me to edit.  The problem is
>that I 
>=>can't save an edited version, even if all I do is delete lines.  I
>=>this stems from the fact that vi tries to save a backup copy, and
>=>since there's no room.
>   Copy the file to another file system, edit it there, then
>"cat /path/to/copied/file > /path/to/orig/file".
>   Sometimes the primitive tools are best. :-)
>   Of course, even better would be to clean stuff off that file
>					Gary Duzan
>Philadelphia Linux Users Group         --       
>Announcements -
>General Discussion  --  

Philadelphia Linux Users Group         --
Announcements -
General Discussion  --