码迷,mamicode.com
首页 > 其他好文 > 详细

findstr

时间:2017-12-08 16:08:51      阅读:103      评论:0      收藏:0      [点我收藏+]

标签:大小写   grep   span   字符   区分大小写   指定   命令   查找   开头   

findstr 用于在文件中查找带有指定字符的行,相当于 Linux 的 grep 命令

findstr "hello" 1.txt       # 在1.txt中查找带有‘hello‘的行
findstr /b "hello" 1.txt # 在1.txt中查找开头是‘hello‘的行
findstr /e "hello" 1.txt    # 在1.txt中查找结尾是‘hello‘的行
findstr /i "hello" 1.txt # 搜索时不区分大小写

 

 

 

 

 

     

findstr

标签:大小写   grep   span   字符   区分大小写   指定   命令   查找   开头   

原文地址:http://www.cnblogs.com/pzk7788/p/8005302.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!