grep命令

grep -r "\"isOutput\":\"Y\"" shellcomponent.txt > aaa.txt---找出包含输出参数为Y的任务id

grep -r "\"isOutput\":\"N\"" shellcomponent.txt > bbb.txt---找出包含输出参数为N的任务id

grep -v "isOutput" shellcomponent.txt > ccc.txt---找出不包含输出参数的任务id

find . -type f|xargs grep "retCode:" -L---找出当前目录下不包含retCode:的文件名

find . -type f|xargs grep "retCode:" -l---找出当前目录下包含retCode:的文件名

你可能感兴趣的:(grep命令)