Changes between Initial Version and Version 1 of jazz/18-02-21
- Timestamp:
- Feb 21, 2018, 3:14:01 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/18-02-21
v1 v1 1 = 2018-02-21 = 2 3 == xargs , find == 4 5 * 常常忘記 xargs 怎麼把 STDIN 的結果拿來當後續指令的參數, 備忘一下:使用 `-I` 參數 6 * 參考: https://unix.stackexchange.com/questions/90886/how-can-i-find-files-and-then-use-xargs-to-move-them 7 {{{ 8 find /tmp/ -ctime -1 -name "x*" | xargs -I '{}' mv '{}' ~/play/ 9 }}} 10 * 當然也可以用 find 指令自己的 `-exec` 參數 11 {{{ 12 find /tmp/ -ctime -1 -name "x*" -exec mv '{}' ~/play/ 13 }}}