[Ilugc] .a-tip-a-day. xargs command

  • From: venkat83@xxxxxxxxx (Venkatraman S)
  • Date: Mon Sep 21 11:32:12 2009

On Mon, Sep 21, 2009 at 10:19 AM, Kapil Hari Paranjape <kapil@xxxxxxxxxxx>wrote:


On Mon, 21 Sep 2009, Venkatraman S wrote:
On Sat, Sep 19, 2009 at 5:04 AM, Girish Venkatachalam <
girishvenkatachalam@xxxxxxxxx> wrote:

is a simple way to edit all files under /etc recursively including
directories. This is better.

$ find /etc -type f | xargs vi


Also, when i tried it with 5 files(txt), my cmd line got screwed up - as
in,
the keymaps werent working - up, down arrows were not responding. (is
this
only me or reproducible?)

I got the same results which leads me to suspect that the original
tip is faulty.


Looks like the same thing on gvim works.
Also this one works : for i in `find ~/Desktop -name "*.txt"`; do vim $i;
done

Though am yet to find the reason for it not working with the earlier cmd
when opening n files(where n is a number that i am yet to figure out)

-V-

Other related posts: