In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Grep is usually used in the analysis of data files when a large number of instructions, and in the parameter options of grep there is a "- color=auto" to grab the data to add a highlight color, and specifically specify which color is controlled by the GREP_COLOR variable, here do not repeat it, to be specific can be viewed through the man manual. It is troublesome to mark the long parameter option of "--color=auto" when grep grabs data, so you can modify the bashrc file in the home directory and add an alias to grep so that it automatically marks the color just like ls. Modify it as follows:
# of course, if you want the global settings of the system, you can put it in the if judgment in the bashrc file Of course, you can also put it directly under the if judgment # by the way, add [root@localhost] # echo-e "alias grep='grep-- color=auto'\ nalias egrep='egrep-- color=auto'" > > ~ / .bashrc [root@localhost] # vim ~ / .bashrc # User specific aliases and functionsalias rm='rm-i'alias cp='cp-i'alias mv='mv-iTunes # Source global definitionsif [- f / etc/bashrc] Then. / etc/bashrc alias grep='grep-color=auto' alias egrep='egrep-color=auto'fi
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.