[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ls * | xargs --counter=^ --replace=_ "echo argument number ^ is _"
From: |
Lars Thon |
Subject: |
ls * | xargs --counter=^ --replace=_ "echo argument number ^ is _" |
Date: |
Wed, 25 Jan 2012 10:38:08 -0800 |
xargs wishlist item:
a method for accessing an xargs running argument count so that the
count can be used in the command to be executed by xargs:
For example, the syntax could be as follows:
ls * | xargs --counter=^ --replace=_ "echo argument number ^ is _"
The counter should perhaps be 0-based, or 1-based, or N-based (programmable
initial value).
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ls * | xargs --counter=^ --replace=_ "echo argument number ^ is _",
Lars Thon <=