zoukankan
html css js c++ java
grep 同时满足多个关键字、满足任意关键字和排除关键字
1. 同时满足多个关键字
grep "word1" file_name | grep "word2" | grep "word3"
2. 满足任意关键字
grep -e "word1" -e "word2" -e "word3" file_name
3. 排除关键字
grep -v "word" file_name
Note:
cut (剪切摘取所需部分)
wc -l (计数)
sort (排序)
uniq (去重)
查看全文
相关阅读:
每日总结50
每日总结49
每日总结48
每日总结47
每日总结46
每日总结45
每日总结44
每日总结42
每日总结41
每日总结39
原文地址:https://www.cnblogs.com/shirley-bhu/p/7422147.html
最新文章
每日日报2020 11/28
每日日报2020 11/27
每日日报2020 11/26
每日日报2020 11/25
每日日报2020 11/24
每日日报2020 11/23
每日日报2020 11/22
每日日报2020 11/21
每日日报2020 11/20
每日日报2020 11/19
热门文章
1162. As Far from Land as Possible
476. Number Complement (solution 2)
735. Asteroid Collision
Daily Coding Problem: Problem #723
1663. Smallest String With A Given Numeric Value
1662. Check If Two String Arrays are Equivalent
726. Number of Atoms
733. Flood Fill
703. Kth Largest Element in a Stream
508. Most Frequent Subtree Sum
Copyright © 2011-2022 走看看