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

Re: OT: xargs & vi



also sprach dman <dsh8290@rit.edu> [2002.01.08.2146 +0100]:
> Other people have explained what happened, but not how to get where
> you want to be.  For vim, at least,
> 
> find . -name Root | xargs vi -
> 
> Tell vim to read data from stdin and commands from stderr.  This is
> also useful to stick the output of a command into a buffer or to use
> vim as a pager.

sure, that will read the output of the find command into vi, iff you
actually omit the xargs.

however, i wanted to open all files returned by the find command, which
works, even though vi was complaining...

thanks though!

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
  
linux: because a pc is a terrible thing to waste

Attachment: pgpT6UQSqbFxN.pgp
Description: PGP signature


Reply to: