shanbin的个人博客分享 http://blog.sciencenet.cn/u/shanbin

博文

grep in Linux

已有 2307 次阅读 2013-7-31 15:52 |个人分类:Linux学习|系统分类:科研笔记| Linux, grap

Sometimes, if you want to find a certain sentence or words in several documents. You can use the command of grep.

For example, if I want to find a word "fortran" in several files "*.f, *.for", I can use the command,


grep  -i "fortran" *.f *.for



https://blog.sciencenet.cn/blog-1000382-712912.html

上一篇:full and high resolution coast and river data of GMT
下一篇:Fortran 生成0-1之间的随机数
收藏 IP: 137.111.13.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (2 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-6-2 23:36

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部