Hunter的大杂烩 技术学习笔记

2022-08-12

find 用正则表达式匹配文件名

Filed under: 技术话题 — hunter @ 11:25 pm

参考:https://www.5axxw.com/questions/content/277vyc

find . -iregex “.*[a-z]+[-][a-z]+[.]log” -regextype egrep

./alarm-err.log
./syncdata-err.log
./data-err.log
./btsvr-err.log
./api-err.log
./dba-err.log
./procmgr-err.log
./data-bbx.log
./task-err.log

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress