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

Re: OT: xargs & vi



On Tue, Jan 08, 2002 at 09:59:56PM +0100, martin f krafft wrote:
| 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.

Yeah, but you didn't omit xargs :-).

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

You're welcome.

-D

-- 

Whoever gives heed to instruction prospers,
and blessed is he who trusts in the Lord.
        Proverbs 16:20



Reply to: