Created
April 3, 2019 08:23
-
-
Save pwrliang/931ec5e664fa751cb03e58166223ecfd to your computer and use it in GitHub Desktop.
常用sh命令总结
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. 从input.txt读取每一行,搜索当前目录下以py结尾的文件,看文件是否包含input.txt中的关键字 | |
for i in `cat ~/input.txt`; do find . -type f -name '*.py' | xargs grep -ni -e $i | grep -v "要排除的关键字" | sort; done > ~/scan.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment