In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use regular expressions in linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
Regular expression is the method of dealing with strings, which deals with strings in terms of behavior units. regular expressions can easily find, delete and replace a specific string with the help of some special symbols.
A regular expression is basically a "representation", and as long as the tool program supports this representation, the tool program can use regular expressions to process strings. Such as vi,grep,awk,sed and so on.
Regular expressions and the previous bash wildcards are two completely different things, and they have nothing to do with each other.
# grep [- A] [- B] [--color=auto] 'string' filename
-A: followed by a number, which means after. In addition to listing the line, the following n lines are also listed.
-B:before means no explanation.
# dmesg | grep-n-A3-B2-color=auto 'eth'
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.