みんな大好き 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 を指定したい場合、イマイチ。
Go to list of users who liked
More than 5 years have passed since last update.
みんな大好き 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 を指定したい場合、イマイチ。
Register as a new user and use Qiita more conveniently
Go to list of users who liked