当前位置:网站首页>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
边栏推荐
- Number theory -- detailed proof of Euler function, sieve method for Euler function, Euler theorem and Fermat theorem
- 电子科大(申恒涛团队)&京东AI(梅涛团队)提出用于视频问答的结构化双流注意网络,性能SOTA!优于基于双视频表示的方法!...
- 522. 最长特殊序列 II(贪心&双指针)
- Parallax JS special effect JS carousel map plug-in
- Constrained Delaunay triangulation in MATLAB
- R language GLM generalized linear model: logistic regression, Poisson regression fitting mouse clinical trial data (dose and response) examples and self-test questions
- [324. swing sequence II]
- Internship: term understanding and handwriting interface
- Concours de segmentation des images gastro - intestinales de kaggle Baseline
- 【Go语言刷题篇】Go从0到入门5:Map综合复习、条件语句、循环语句练习
猜你喜欢

Markdown drawing Mermaid practical tutorial

The first meta universe concept novel, meta universe 2086, won the upper attack meta universe award in 2022

【算法篇】刷了两道大厂面试题,含泪 ”重学数组“

Variational graph auto-encoders (VGAE)

R language GLM generalized linear model: logistic regression, Poisson regression fitting mouse clinical trial data (dose and response) examples and self-test questions

Redis 如何实现库存扣减操作?如何防止商品被超卖?

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)

基于趋势和季节性的时间序列预测

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

秋招经验分享 | 银行笔面试该怎么准备
随机推荐
Markdown Mermaid Grass (1) Introduction à Mermaid
return new int[]{i + 1, mid + 1}; return {i + 1, mid + 1};
How to obtain the coordinates of the aircraft passing through both ends of the radar
Kaggle腸胃道圖像分割比賽baseline
List adding timer (positive and countdown)
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?
2280.Cupboards
Nanopc-t4 (rk3399) Game1 OLED (I2C) display time weather temperature
Figure introduction to neural networks (GNN, GCN)
Average score of 100 people
Bayesian inference problem, MCMC and variational inference
智能计算系统3 Plugin 集成开发的demo
csdn涨薪技术-Selenium自动化测试全栈总结
100人成绩的平均
Software supply chain security risk guide for enterprise digitalization and it executives
Markdown mermaid种草(1)_ mermaid简介
[algorithm] I brushed two big factory interview questions and learned array again with tears in my eyes“
Tencent tangdaosheng: facing the new world of digital and real integration, developers are the most important "architects"
《数据安全法》出台一周年,看哪四大变化来袭?
Class loading mechanism and object creation