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

  • From: venkat83@xxxxxxxxx (Venkatraman S)
  • Date: Mon Sep 21 09:36:07 2009

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

$ find /etc | xargs vi

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

$ find /etc -type f | xargs vi


Looks like there is a limit on the number of files this could open. I tried
it with 32, and it bonked.

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?)

-V-

Other related posts: