shell-find、grep awk查找.conf后缀文件的包含xx字符的行

find . -name '*.conf' | xargs cat | grep '\-\-' | grep flagfile | awk -F'flagfile=' '{print $2}' | awk '{print $1}' | xargs cat | less

猜你喜欢

转载自www.cnblogs.com/rrcj/p/11480265.html
今日推荐