Tôi đang đọc man page của GNU find
's và ngại khi chuyển đổi này:Sự khác nhau giữa các loại regex
-regextype type
Changes the regular expression syntax understood by -regex and
-iregex tests which occur later on the command line. Currently-
implemented types are emacs (this is the default), posix-awk, posix-
basic, posix-egrep and posix-extended.
sự khác biệt giữa những cú pháp regex là gì? Tôi quen thuộc hơn với regex của Ruby, vậy tôi nên sử dụng loại regex nào với find
?
Hãy xem tại đây: http://www.regular-expressions.info/refflavors.html – fge
Cảm ơn Hmm, tôi đã tìm thấy URL này: http://www.gnu.org/software/findutils/manual/html_node/ find_html/Regular-Expressions.html có khá nhiều câu trả lời cho câu hỏi đầu tiên của tôi. – Lamnk