看板 Linux 關於我們 聯絡資訊
請教一個串接的指令,我想使用: 用find 找出檔案,然後取出檔名,再餵給某個程式,執行解開的動作,顯示在monitor/或著導入成原始檔名 +.txt 寫了一半,後面不知要怎麼接,用execl ? 還是exec ? find . -name "tmp1.dat" | awk -F/ '{print $3}' 結果: 找出各目錄下的 tmp1.dat 檔名,然後使用 $BIN/tools/undecode tmp1.dat > tmp1.dat.txt ....後面怎麼接 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.250.19.194 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1449530181.A.A62.html
ckc1ark: 參考這篇 http://tinyurl.com/6oetqjq 12/08 09:17
TwoDemon: 謝謝 12/08 13:35
tjjh89017: xargs <-- 12/09 00:12
bdvstg: 我也推xargs 12/10 21:25