当前位置:网站首页>grep文本搜索工具
grep文本搜索工具
2022-06-28 19:46:00 【Bio大恐龙】
系列文章目录
1.1 压缩与解压缩命令
2.1 head、tail查看文件
3 grep文本搜索工具
一、grep
grep命令用于查找文件里符合条件的字符串。
grep 指令用于查找内容包含指定的范本样式的文件,如果发现某文件的内容符合所指定的范本样式,预设 grep 指令会把含有范本样式的那一列显示出来。
使用格式:
grep [-option] '条件' [文件/目录]
| 常用参数 | 意义 |
|---|---|
| -v | 显示不包含匹配文本的所有行。 |
| -i | 忽略字符大小写的差别。 |
| -c | 计算符合样式的列数。 |
例如查看fasta文件中有多少条序列:
grep -c '>' all_viruses_nucleotide_sequences_20171115.fasta
270
查看fasta文件中以WHW开头的文件:
grep '>WHW' all_viruses_nucleotide_sequences_20171115.fasta
>WHWGC149849_Chinese_broad-headed_pond_turtle_astro-like_virus_9296bp
>WHWGC150683_Chinese_broad-headed_pond_turtle_arterivirus_14939bp
>WHWGC151314_Chinese_broad-headed_pond_turtle_picornavirus_1_9218bp
>WHWGGF74766_Tortoise_Rafivirus_A_7315bp
>WHWGGF75534_Chinese_broad-headed_pond_turtle_picornavirus_2_7999bp
>WHWGGF64311_Chinese_broad-headed_pond_turtle_hepacivirus_8764bp
边栏推荐
- 论文阅读:Duplex Contextual Relation Network for Polyp Segmentation
- The white paper on the panorama of the digital economy and the digitalization of consumer finance were released
- 智能计算系统3 Plugin 集成开发的demo
- 100人成绩的平均
- 为什么C语言用使用其他文件的结构体变量时,声明结构体别名还不行,必须使用本名?(使用别名时不能加struct)
- Why is it not enough to declare the structure alias when using the structure variable of other files in C language, and the proper name must be used? (cannot add struct when using alias)
- Leetcode week 299
- Average score of 100 people
- Day88.七牛云: 房源图片、用户头像上传
- F(x)构建方程 ,梯度下降求偏导,损失函数确定偏导调整,激活函数处理非线性问题
猜你喜欢

在arm版本rk3399中搭建halo博客

Variational graph auto-encoders (VGAE)

Xiaobai's e-commerce business is very important to choose the right mall system!

Markdown mermaid種草(1)_ mermaid簡介

首部元宇宙概念小说《元宇宙2086》获得2022年上袭元宇宙奖

数论 --- 欧拉函数、筛法求欧拉函数、欧拉定理、费马小定理详细证明

5g NR MBS architecture introduction

easypoi

秋招经验分享 | 银行笔面试该怎么准备
![return new int[]{i + 1, mid + 1};return {i + 1, mid + 1};](/img/6a/45a4494276deba72ef9833818229f5.png)
return new int[]{i + 1, mid + 1};return {i + 1, mid + 1};
随机推荐
还在付费下论文吗?快来跟我一起白piao知网
How to obtain the coordinates of the aircraft passing through both ends of the radar
Can py SQL get the table structure?
为什么C语言用使用其他文件的结构体变量时,声明结构体别名还不行,必须使用本名?(使用别名时不能加struct)
Echart: category text position adjustment of horizontal histogram
List adding timer (positive and countdown)
jsp中获取session中的值
Bayesian Reference problem, mCMC and variational reference
Bayesian inference problem, MCMC and variational inference
【算法篇】刷了两道大厂面试题,含泪 ”重学数组“
two thousand three hundred and forty-two
Chunfeng power and Huawei work together to build a smart Park benchmark, and the future factory innovation will reach a new level
Gaozelong, a digital economy expert: Yingke changed its name to yingcosmos. Will yuancosmos become the next growth engine of Yingke?
2280.Cupboards
odoo15 Module operations are not possible at this time, please try again later or contact your syste
阿里开源(EasyExcel)
F(x)构建方程 ,梯度下降求偏导,损失函数确定偏导调整,激活函数处理非线性问题
电子科大(申恒涛团队)&京东AI(梅涛团队)提出用于视频问答的结构化双流注意网络,性能SOTA!优于基于双视频表示的方法!...
Ffmpeg usage in video compression processing
C#应用程序界面开发基础——窗体控制