#sed删除最后3行tac file|sed 1,3d|tacsed '$d' file|sed '$d' |sed '$d' #匹配2个单词grep -E "abc|fred" temp #精确匹配cat file|grep "\\<abc\\>"#该片段来自于http://www.codesnippet.cn/detail/040220132087.html
来源: http://www.codesnippet.cn/detail/040220132087.html