Contents

快速查詢多個檔案方法

快速查詢多個檔案方法

簡單小記

find 查詢大法

1
find */ -regex '.*UZ29564846.*\|.*UZ02104919.*\|.*UZ02605231.*\|.*UZ02771129.*\|.*UZ03128013.*\|.*UZ03645989.*\|.*UZ04195564.*\|.*UZ04258665.*\|.*UZ04572090.*\|.*UZ04582332.*\|.*UZ04795657.*\|.*UZ04795658.*\|.*UZ04805060.*\|.*UZ04906998.*\|.*UZ05422771.*\|.*UZ05959297.*\|.*UZ06513505.*\|.*UZ06513808.*\|.*UZ06557497.*\|.*UZ06627631.*\|.*UZ06844457.*\|.*UZ06858381.*\|.*UZ07690050.*\|.*UZ07745374.*\|.*UZ07973794.*\|.*UZ08481252.*\|.*UZ08483243.*\|.*UZ08994865.*\|.*UZ09219703.*\|.*UZ09617909.*\|.*UZ09744363.*\|.*UZ10085340.*\|.*UZ10147439.*\|.*UZ10265614.*\|.*UZ10349030.*\|.*UZ11080689.*\|.*UZ11113319.*\|.*UZ11239587.*\|.*UZ11340496.*\|.*UZ11358240.*\|.*UZ11369419.*\|.*UZ11574001.*\|.*UZ13383394.*\|.*UZ12044029.*\|.*UZ12052655.*\|.*UZ12305719.*\|.*UZ13379585.*\|.*UZ12380320.*\|.*UZ12512884.*\|.*UZ13031886.*\|.*UZ13178378.*\|.*UZ13221862.*\|.*UZ12812003.*\|.*UZ12897804.*\|.*UZ13218549.*\|.*UZ13219157.*\|.*UZ13740815.*\|.*UZ13740852.*\|.*UZ13813311.*\|.*UZ13971437.*\|.*UZ13991424.*\|.*UZ14256642.*\|.*UZ14325289.*\|.*UZ14450802.*\|.*UZ14490320.*\|.*UZ14610042.*\|.*UZ14629788.*\|.*UZ14676668.*\|.*UZ14725354.*\|.*UZ14781828.*\|.*UZ14847205.*\|.*UZ15257774.*\|.*UZ15368931.*\|.*UZ15508841.*\|.*UZ15715055.*\|.*UZ16018567.*\|.*UZ16265337.*\|.*UZ16390441.*\|.*UZ16515932.*\|.*UZ16624108.*\|.*UZ16746539.*\|.*UZ17064104.*\|.*UZ17324547.*\|.*UZ17336391.*\|.*UZ20836990.*\|.*UZ22806918.*\|.*UZ23183708.*\|.*UZ24312875.*\|.*UZ24380058.*\|.*UZ24602016.*'

regex match either string in linux “find” command - Stack Overflow

之前就有記錄相關 find 指令,但每次都忘了差不多怎麼用…,不過有整理筆記的好處,可以方便找出來。

globstar 大法

跟find 差不多…,但好像也沒有比較方便。

直接找 zip 檔案內容

How can I view the contents of tar.gz file without extracting from the command-line? - Ask Ubuntu
linux - How to find the string in the list of .gz files? - Unix & Linux Stack Exchange

查詢有壓縮(gz)日誌 log 方法 | 程式狂想筆記

https://ideone.com/7nbElh