我想重复
touch ../template/filename
Run Code Online (Sandbox Code Playgroud)
filename来自哪里find。我想xargs应用该touch操作,但我不希望它像通常那样插入一个空格,它派生为:
touch ../template/ filename
Run Code Online (Sandbox Code Playgroud)
这是我不完整的命令。我如何完成它?
find *.html | xargs touch ../template/WHAT-NOW
Run Code Online (Sandbox Code Playgroud)
use*_*686 12
find -name "*.html" | xargs -d"\n" -I"{}" touch ../template/{}
find -name "*.html" -exec touch ../template/{} \;
Run Code Online (Sandbox Code Playgroud)
请注意这find *.html是错误的,因为通配符在命令执行之前被扩展。
| 归档时间: |
|
| 查看次数: |
3957 次 |
| 最近记录: |