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.
我想搜索不在集合 [0-9] 和 [af] 中的字符。请帮我写这个正则表达式?我是纯粹的 Windows 用户,必须为特定目的处理这些东西。
为什么使用正则表达式?为什么要使用 grep?
tr -d a-f0-9 < input-file
将打印所有超出所需范围的字符。