find . -name *.java | xargs -J% cp % ~/Desktop
xargsのJ
オプションが大事です。
-J%
でそのあとに続く%
を置換するという宣言になっています。
More than 5 years have passed since last update.
find . -name *.java | xargs -J% cp % ~/Desktop
xargsのJ
オプションが大事です。
-J%
でそのあとに続く%
を置換するという宣言になっています。
Register as a new user and use Qiita more conveniently