【发布时间】:2020-04-02 11:30:32
【问题描述】:
find . "$HOME"/Documents -iname *.md -o -iname *.html -o -iname *.css -o -iname *.js -o -iname *.ts -o -iname *.txt
我找不到一种方法来摆脱所有这些糟糕的-o -iname 并拥有类似*.{md,html} 的东西。它必须是一个语句。
奖金回合问题...如何从搜索中排除 node_modules :)?
【问题讨论】:
-
额外问题:
-path node_modules -prune