当前位置:网站首页>Pipeline | and redirection >
Pipeline | and redirection >
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 >
The Conduit | And redirect >
One 、 The Conduit |
The pipeline can only handle the correct output information sent through the previous instruction , That is to say standard output Information about , about standard error Information has no direct processing power .
And then standard output Pass as standard input to the next command .
Use format :
[ command ] | [ command ]
for example :
head -n 10 all_viruses_nucleotide_sequences_20171115.fasta | grep '>'
>BHFishC185032_Beihai_conger_calicivirus_6981bp
>BHFishC186477_Beihai_fish_calicivirus_6847bp
>BHFishC187917_Beihai_yellowfin_seabream_calicivirus_6816bp
>BHFishC181798_Beihai_rabbitfish_calicivirus_1_4604bp
>BHFishC188521_Beihai_rabbitfish_calicivirus_2_5721bp
Two 、 Redirect >
Use > You can redirect standard output information that should appear on the screen to a file .
Use format :
[ command ] > [ command ]
for example :
head -n 10 all_viruses_nucleotide_sequences_20171115.fasta | grep '>' > BHF.txt
>BHFishC185032_Beihai_conger_calicivirus_6981bp
>BHFishC186477_Beihai_fish_calicivirus_6847bp
>BHFishC187917_Beihai_yellowfin_seabream_calicivirus_6816bp
>BHFishC181798_Beihai_rabbitfish_calicivirus_1_4604bp
>BHFishC188521_Beihai_rabbitfish_calicivirus_2_5721bp
tail -n 10 all_viruses_nucleotide_sequences_20171115.fasta | grep '>' > WHW.txt
>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
>XMTSYG10372_Xiamen_fanray_pesti-like_virus_11039bp
cat WHW.txt BHF.txt > combine.txt
cat combine.txt
>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
>XMTSYG10372_Xiamen_fanray_pesti-like_virus_11039bp
>BHFishC185032_Beihai_conger_calicivirus_6981bp
>BHFishC186477_Beihai_fish_calicivirus_6847bp
>BHFishC187917_Beihai_yellowfin_seabream_calicivirus_6816bp
>BHFishC181798_Beihai_rabbitfish_calicivirus_1_4604bp
>BHFishC188521_Beihai_rabbitfish_calicivirus_2_5721bp
边栏推荐
猜你喜欢

Chunfeng power and Huawei work together to build a smart Park benchmark, and the future factory innovation will reach a new level

Group programming TIANTI competition exercise - continuously updating

为什么C语言用使用其他文件的结构体变量时,声明结构体别名还不行,必须使用本名?(使用别名时不能加struct)

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

Double contextual relationship network for polyp segmentation
![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};

机器学习笔记 temperature+Softmax
![[324. swing sequence II]](/img/4f/dbbc28c7c13ff94bd0956f2ccf9603.png)
[324. swing sequence II]

Analysys analytics' 2022 China Banking privacy computing platform supplier strength matrix analysis' research activity was officially launched

Machine learning notes temperature+softmax
随机推荐
C语言-函数知识点
【Go语言刷题篇】Go从0到入门5:Map综合复习、条件语句、循环语句练习
Past blue bridge cup test questions ants catch cold
2022焊工(初级)特种作业证考试题库及答案
jsp中获取session中的值
Markdown Mermaid planting grass (1)_ Introduction to Mermaid
F(x)构建方程 ,梯度下降求偏导,损失函数确定偏导调整,激活函数处理非线性问题
Analysys analytics' 2022 China Banking privacy computing platform supplier strength matrix analysis' research activity was officially launched
Kettle (VI): full database backup based on kettle
Variable autoencoders (vaes)
社招两年半10个公司28轮面试面经
risc-v指令集
Autumn recruitment experience sharing | how to prepare for bank interview
变分自编码器 (Variational Autoencoders, VAEs)
首部元宇宙概念小说《元宇宙2086》获得2022年上袭元宇宙奖
jvm内存结构
基于趋势和季节性的时间序列预测
The amazing nanopc-t4 (rk3399) is used as the initial configuration and related applications of the workstation
grep文本搜索工具
[324. swing sequence II]