[Ilugc] XArgs

  • From: kapil@xxxxxxxxxxx (Kapil Hari Paranjape)
  • Date: Sat Jun 7 20:13:11 2008

Hello,

On Sat, 07 Jun 2008, Masatran, R. Deepak wrote:

Eureka! I scanned the man page again and found a switch "-l" which forces
each input argument to be processed separately. Therefore, it is

    xargs -l foo

that is equivalent to

    xargs -i foo {}

Now onwards, I will always use "-l" with XArgs.

Be careful. The man page also says:

        The -l option is deprecated since the POSIX  standard
        specifies -L instead.

So it may be better to use

        xargs -L 1 foo

Kapil.
--

Other related posts: