In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux commonly used command look how to use, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
The Linux command look is commonly used to query words, and the look instruction is used to query English words. You only need to give it the initial string it wants to query, and it will display all the words in the opening string that meet that condition.
Syntax look [- adf] [- t] [prefix string] [dictionary file] parameter description:
-a uses another dictionary file, web2, which is also located in the / usr/dict directory.
-d only compare English letters and numbers, and ignore the rest.
-f ignores character case differences.
-t sets the suffix string.
Instance to find all the lines in the testfile file that begin with the letter L, enter the following command:
The contents of the original look L testfile file testfile are as follows:
$cat testfile # View the contents of the testfile file HELLO LINUX! Linux is a free unix-type opterating system. This is a linux testfile! Linux test uses the look command in the testfile file to find the word that starts with "L". The result is as follows:
$look L testfile # find the word Linux is a free unix-type opterating system that begins with "L". # the second line starts with "L", lists the whole sentence Linux test # the fourth line begins with "L", and lists the whole sentence thank you for reading this article carefully. I hope the article "how to use Linux commands look" shared by the editor will be helpful to you. At the same time, I also hope you will support us, pay attention to the industry information channel, and more related knowledge is waiting for you to learn!
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.