当前位置:网站首页>wc命令的使用
wc命令的使用
2022-06-28 19:46:00 【Bio大恐龙】
系列文章目录
1.1 压缩与解压缩命令
2.1 head、tail查看文件
3 grep文本搜索工具
4 管道 | 与重定向 >
5 wc命令的使用
提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档
一、wc
wc命令来自于英文词组“Word count”的缩写,用于统计文件的字节数、单词数、行数等信息,并将统计结果输出到终端界面。
使用格式:
wc [-option] filename
常见参数:
| 参数 | 意义 |
|---|---|
| -l | 统计行数 |
| -w | 统计单词数 |
| -c | 统计字节数 |
| -m | 统计字符数 |
| -L | 显示最长行的长度 |
例如统计文件行数:
wc -l all_viruses_nucleotide_sequences_20171115.fasta
540 all_viruses_nucleotide_sequences_20171115.fasta
统计fasta文件有多少序列:
grep '>' all_viruses_nucleotide_sequences_20171115.fasta | wc -l
270
统计字节数:
wc -c all_viruses_nucleotide_sequences_20171115.fasta
2011124 all_viruses_nucleotide_sequences_20171115.fasta
边栏推荐
猜你喜欢

使用点云构建不规则三角网TIN

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

Tencent tangdaosheng: facing the new world of digital and real integration, developers are the most important "architects"

easypoi

电子科大(申恒涛团队)&京东AI(梅涛团队)提出用于视频问答的结构化双流注意网络,性能SOTA!优于基于双视频表示的方法!...

《数据安全法》出台一周年,看哪四大变化来袭?

Building tin with point cloud

Installation and configuration of CGAL in PCL environment 5.4.1

Markdown mermaid种草(1)_ mermaid简介

Digital collection, ten thousand words long text, most of the questions you want to know have been clearly explained, which must be seen by practitioners
随机推荐
csdn涨薪技术-Selenium自动化测试全栈总结
基于趋势和季节性的时间序列预测
论文3 VScode&texlive&SumatraPDF打造完美书写论文工具
easypoi
2788.Cifera
internship:术语了解及着手写接口
How strong a mathematical foundation does deep learning need?
I just bought the ADB MySQL service. Every time I do an operation, such as creating a table, this problem will pop up. What is the problem?
Markdown mermaid種草(1)_ mermaid簡介
Class loading mechanism and object creation
【Go语言刷题篇】Go从0到入门5:Map综合复习、条件语句、循环语句练习
Figure introduction to neural networks (GNN, GCN)
Xiaobai's e-commerce business is very important to choose the right mall system!
团体程序设计天梯赛练习题-持续更新中
严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDe
[algorithm] I brushed two big factory interview questions and learned array again with tears in my eyes“
Demo of intelligent computing system 2 bangc operator development (heterogeneous programming flow of CPU and mlu270)
[324. swing sequence II]
Bayesian inference problem, MCMC and variational inference
Markdown Mermaid Grass (1) Introduction à Mermaid