当前位置:网站首页>Use of WC command
Use of WC command
2022-06-28 19:59:00 【Bio dinosaur】
List of articles
1.1 Compression and decompression commands
2.1 head、tail see file
3 grep Text search tools
4 The Conduit | And redirect >
5 wc Use of commands
Tips : After writing the article , Directories can be generated automatically , How to generate it, please refer to the help document on the right
wc Use of commands
One 、wc
wc Commands come from English phrases “Word count” Abbreviation , Used to count the number of bytes of the file 、 Number of words 、 Lines and so on , And output the statistical results to the terminal interface .
Use format :
wc [-option] filename
Common parameters :
| Parameters | significance |
|---|---|
| -l | The statistical number of rows |
| -w | Count the number of words |
| -c | Count the number of bytes |
| -m | Count characters |
| -L | Shows the length of the longest line |
For example, count the number of file lines :
wc -l all_viruses_nucleotide_sequences_20171115.fasta
540 all_viruses_nucleotide_sequences_20171115.fasta
Statistics fasta How many sequences does the file have :
grep '>' all_viruses_nucleotide_sequences_20171115.fasta | wc -l
270
Count the number of bytes :
wc -c all_viruses_nucleotide_sequences_20171115.fasta
2011124 all_viruses_nucleotide_sequences_20171115.fasta
边栏推荐
- Redis 如何实现库存扣减操作?如何防止商品被超卖?
- CSDN salary increase technology selenium automated test stack summary
- Ali open source (easyexcel)
- Judge whether the string is empty
- F (x) construct the equation, calculate the partial derivative by gradient descent, determine the partial derivative adjustment by loss function, and deal with nonlinear problems by activation functio
- Demo of integrated development of intelligent computing system 3 plugin
- 《数据安全法》出台一周年,看哪四大变化来袭?
- Industry analysis - quick intercom, building intercom
- Software supply chain security risk guide for enterprise digitalization and it executives
- C # application interface development foundation - form control
猜你喜欢

5g NR MBS architecture introduction

Fontawesome icon for color gradient

Echart: category text position adjustment of horizontal histogram

SQL server2019 create a new SQL server authentication user name and log in

Variable autoencoders (vaes)

How strong a mathematical foundation does deep learning need?

Variational graph auto-encoders (VGAE)

CSDN salary increase technology selenium automated test stack summary

论文笔记:Universal Value Function Approximators

为什么C语言用使用其他文件的结构体变量时,声明结构体别名还不行,必须使用本名?(使用别名时不能加struct)
随机推荐
Pyinstaller打包pikepdf失败的问题排查
Building tin with point cloud
Gaozelong, a digital economy expert: Yingke changed its name to yingcosmos. Will yuancosmos become the next growth engine of Yingke?
集合之ArrayList
Quaternion quaternion and Euler angle Transformation in Ros
Demo of intelligent computing system 2 bangc operator development (heterogeneous programming flow of CPU and mlu270)
[324. swing sequence II]
Demo of integrated development of intelligent computing system 3 plugin
[algorithm] I brushed two big factory interview questions and learned array again with tears in my eyes“
如何通过W3school学习JS/如何使用W3school的JS参考手册
Average score of 100 people
Concours de segmentation des images gastro - intestinales de kaggle Baseline
The severity code indicates that the project file line prohibits the display of status errors. C1047 object or library file ".Lib" is different from other objects (such as "x64\release\main.obj")
1002_20181019
论文阅读:Duplex Contextual Relation Network for Polyp Segmentation
How does win11 slim down the system disk? Slimming method of win11 system disk
H5 sunflower operation
Tencent tangdaosheng: facing the new world of digital and real integration, developers are the most important "architects"
ArrayList of collection
Internship: term understanding and handwriting interface