Re: idiot's qn to vi files

[email protected] Tue, 28 Jan 2003 09:39:23 +0100 (MET)
Newsgroups gmane.linux.redhat.release.guinness
Message-ID <[email protected]>
# if files name is "./a a a"
$ find . -name "*a a*" -exec vi {} \;
# inside vi see size of file in ESC-Mode:
:!ls -l "%"
# inside vi read files name
:r !ls "%"
regards~andreas
> You can also double quote the name For example:
> 
> $ vi "My Filename Here"
> 
> Will work.
> 
> -Mike
> 
> ----- Original Message -----
> From: <[email protected]>
> To: <[email protected]>
> Sent: Monday, January 27, 2003 3:53 PM
> Subject: Re: idiot's qn to vi files
> 
> 
> > $ vi Red\ Hot\ Chili\ Peppers-By\ The\ Way[Return]
> > ~andreas
> > > On Mon, Jan 27, 2003 at 11:52:32AM +0800, Daniel Tan wrote:
> > >
> > > > Hi,
> > > >     just a short idiot's question. How do you vi (edit) a file that
> has
> > > > spaces in between the file name?
> > >
> > > > eg. this is a log file.log
> > >
> > > vi this\ is\ a\ log\ file.log
> > >
> > > or
> > >
> > > vi "this is a log file.log"
> > >
> > > or
> > >
> > > type the first few letters and hit TAB to let the shell complete the
> > > filename...
> > >
> > > --
> > > .jA
> > > repoleveD \ .nimdA smetsyS
> > >
> > >
> > >
> > > _______________________________________________
> > > Guinness-list mailing list
> > > [email protected]
> > > https://listman.redhat.com/mailman/listinfo/guinness-list
> > >
> >
> > --
> > +++ GMX - Mail, Messaging & more  http://www.gmx.net +++
> > NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
> >
> >
> >
> > _______________________________________________
> > Guinness-list mailing list
> > [email protected]
> > https://listman.redhat.com/mailman/listinfo/guinness-list
> >
> 
> 
> 
> _______________________________________________
> Guinness-list mailing list
> [email protected]
> https://listman.redhat.com/mailman/listinfo/guinness-list
> 

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!