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 (去重)
查看全文
相关阅读:
人物-作家-马克·吐温:马克·吐温
人物-发明家-特斯拉:尼古拉·特斯拉
视觉暂留-Info:这些神奇的“视觉暂留”动画,每一幅都让人拍案叫绝!
视觉暂留:余晖效应/视觉暂留
mingetty
mesg
md5sum
man.conf
man
makemap
原文地址:https://www.cnblogs.com/shirley-bhu/p/7422147.html
最新文章
windows 7 SDK和DDK下载
char* 和char[]差异
本文摘录
send,recv,sendto,recvfrom
[Regular Expressions] Find a String that Precedes Another String ?= , ?!
[Regular Expressions] Find Groups of Characters, and ?:
[Ionic] Build and Run an Ionic App from Scratch
[Git] --no-verify
[Git] set-upstream
[Redux] Extracting Action Creators
热门文章
[Redux] Generating Containers with connect() from React Redux (FooterLink)
[Redux] Generating Containers with connect() from React Redux (AddTodo)
[Cycle.js] Fine-grained control over the DOM Source
[Cycle.js] Making our toy DOM Driver more flexible
人物-旅行家:潘德明
图书-旅行-十年徒步中国:《信念:十年徒步中国》
文学-谚语:谚语
图书-励志-羊皮卷:《羊皮卷》
图书:目录
人物-作家-卡耐基:戴尔·卡耐基
Copyright © 2011-2022 走看看