Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有使用 grep 获得的文本块,我想仅 [A-Za-z}+/[0-9]+/[0-9]+使用管道和 awk 或
[A-Za-z}+/[0-9]+/[0-9]+
/(any number of letters)/(Any number) /(Any Number)
斜杠是我感兴趣的字符串的一部分。我对 linux 环境非常陌生,这给我带来了麻烦。
grep '^/[[:alpha:]]\+/[[:digit:]]\+/[[:digit:]]\+$'