find
格式
参数
exec参数
#### 示例
bovenson@MBP:~/Tmp$ cat script/echoargs
#!/bin/bash
echo $1 - $2 - $3
bovenson@MBP:~/Tmp$ tree tfile/
tfile/
├── a
├── b
└── c
0 directories, 3 files
bovenson@MBP:~/Tmp$ find tfile -exec ./script/echoargs {} \;
tfile - -
tfile/a - -
tfile/c - -
tfile/b - -
bovenson@MBP:~/Tmp$ find tfile -exec ./script/echoargs {} +
tfile - tfile/a - tfile/c如果出现没有权限错误
示例
最后更新于