In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1 cut intercepts columns 1 and 3 in passwd
Cut-d ":"-f 1jue 3 / etc/passwd
2 grep
Displays the line containing the specified character
Grep 29 alter.sql
Grep "root" passwd
Grep-n "root" passwd-displays the line number
Displays lines that do not contain the specified character
Grep-v "root" passwd
Displays the specified multiline characters at the same time
Grep-Ei "28 | 29 | 25" alter.sql
Statistics show lines containing specified characters
Grep-c "root" passwd
3 shell date processing
A day ago,
Cur_date= `date-d "- 1 day" + a "" b "" d`
Echo $cur_date
Sat Apr 25
$date-d "2012-04-10-1 day" +% Y-%m-%d
2012-04-09
$date-d "2012-04-10 + 1 day" +% Y-%m-%d
2012-04-11
$date-d "- 1 day" +% Y-%m-%d
2012-04-15
$date-d "+ 1 week" +% Y-%m-%d
2012-04-29
$date-d "+ 1 month" +% Y-%m-%d
2012-05-22
$date-d "- 1 month" +% Y-%m-%d
2012-03-22
$date-d "- 1 year" +% Y-%m-%d
2011-04-22
$date-d "+ 1 year" +% Y-%m-%d
2013-04-22
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.