2008年12月4日linuxgrep命令:linux grep命令的使用
用‘grep’搜索文本文件
如果您要在几个文本文件中查找一字符串,可以使用‘grep’命令。‘grep’在文本中搜索指定的字符串。假设您正在‘/usr/src//Documentation’目录下搜索带字符串‘magic’的文件:
$ grep magic /usr/src//Documentation/* sysrq.txt:* How do I enable the magic SysRQ key?sysrq.txt:* How do I use the magic SysRQ key?
其中文件‘sysrp.txt’包含该字符串,讨论的是 Sys...
[阅读全文] [PDF]
1 共1条 分1页