Tips:grep搜索
2022年9月19日In order to search for a string in some files, use 'grep' like this:
grep "string" filename1 [filename2 filename3 ...]
This will print out the lines in the files that contain the string. grep can also do a lot more advanced searches - type 'man grep' for details.
在一些文件中搜索一个字符串,可以使用'grep'命令,如下:
#grep "string" filename1 [filename2 filename3 ...]
这个命令可以输ch包含该字符串的文件对应的行的内容,grep命令还有许多高级搜索功能,输入man grep查询细节。