Re: OT: xargs & vi
On Wed, Jan 09, 2002 at 12:22:57AM +0100, martin f krafft wrote:
| also sprach dman <dsh8290@rit.edu> [2002.01.08.2343 +0100]:
| > | 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 :-).
|
| because i wanted to use it. i wanted it to provide filenames to vi the
| same way that
|
| find . -name Root | xargs rm
|
| would actually create a command invocation of rm with all the outputs of
| the find command provided as arguments as if they'd been typed on the
| command line.
|
| vi - *reads* the payload from stdin. i wanted to read the filenames to
| load with vi from stdin,
Ooh, yeah, that's not quite right.
| that's why i *need* xargs. but if you do what you wanted:
|
| fishbowl:~> find . -maxdepth 1 -name .muttrc | xargs vi -
| VIM - Vi IMproved 6.0 (2001 Sep 26, compiled Dec 12 2001 15:44:32)
| Too many edit arguments: "./.muttrc"
| More info with: "vim -h"
|
| okay, vim, sorry.
:-). Hmm, interesting, vim is able to read the filename from stdin.
-D
--
A wise servant will rule over a disgraceful son,
and will share the inheritance as one of the brothers.
Proverbs 17:2
Reply to: