看板 Linux 關於我們 聯絡資訊
※ 引述《shihyuyao (shihyuyao)》之銘言: : 我資料夾裡面有很多個.c & .h 檔案 : 請問一下我想使用 vim -p 開啟多個.c & .h file : 怎麼使用find 先把.c 跟 .h 檔案找出來? 再用 vim -p 開起這些.c & .h 檔案? vim -p `find . -type f -iname "*.c" -or -type f -iname "*.h"` : 再請在一個問題, 如果有很多層資料夾~裡面有很多.c & .h 要怎麼遞迴 ? find -R參數嗎? : 謝謝 不知道你用哪個版本的find 不過我在FreeBSD或Linux用過的find都沒有-R這個參數 而是直接就預設遞迴了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.31.155 ※ 編輯: Holocaust123 來自: 140.112.31.155 (10/01 13:03)