Skip to content

Commit

Permalink
修复 ls 命令错误示例 (#337)
Browse files Browse the repository at this point in the history
应该为`ls *.jpg | xargs -n1 -I{} cp {} /data/images`
  • Loading branch information
z-anshun authored Mar 3, 2022
1 parent 3572d9f commit 81d58b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/xargs.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ cat arg.txt | xargs -I {} ./sk.sh -p {} -l
复制所有图片文件到 /data/images 目录下:

```shell
ls *.jpg | xargs -n1 -I cp {} /data/images
ls *.jpg | xargs -n1 -I{} cp {} /data/images
```

#### 结合 find 命令使用
Expand Down

0 comments on commit 81d58b3

Please sign in to comment.