您可能认为我可以在某个地方找到答案,但我却很难做到。我想找一些类似于以下名称的日志文件:
myfile_3.log
然而,我只想找到特定范围内带有数字的内容。我尝试了像这样的方法:
find <path> -name myfile_{0..67}.log #error: find: paths must precede expression
find <path> -name myfile_[0-67].log #only return 0-7, not 67
find <path> -name myfile_[0,67].log #only returns 0,6,7
find <path> -name myfile_*([0,67]).log # returns only 0,6,7,60,66,67,70,76,77
还有其他想法吗?