三色傑克
xargs 最常用的方式
shell\> ls -l /home/test/*.h xargs -i ln -s {}
-i (interactive), { } 把ls 輸出的每一個結果 (檔名) 當成ln 的argument.
用 find 也能達到一樣效果
shell\> find /home/test -name "*.h" -exec ln -s {}
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言