0
0

More than 5 years have passed since last update.

apply

Posted at

みんな大好き apply

$ touch 1 3 5 7 9
$ cat list.txt
1   2
3   4
5   6
7   8
9   10
$ apply -2 mv $(cat list.txt)
$ ls
10 2 4 6 8 list.txt

とか

$ apply 'expr %1 + %2 + %3' $( seq 1 9 )
6
15
24

とか。

でも、xargs と同じく function を指定したい場合、イマイチ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0