当前位置:网站首页>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
边栏推荐
- ArrayList of collection
- jsp中获取session中的值
- 论文阅读:Duplex Contextual Relation Network for Polyp Segmentation
- Kaggle腸胃道圖像分割比賽baseline
- Industry analysis - quick intercom, building intercom
- Gaozelong, a digital economy expert: Yingke changed its name to yingcosmos. Will yuancosmos become the next growth engine of Yingke?
- redisTemplate
- MDM data analysis function description
- On the first anniversary of the data security law, which four major changes are coming?
- From design delivery to development, it is easy and efficient!
猜你喜欢

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

From design delivery to development, it is easy and efficient!

Industry analysis - quick intercom, building intercom

easypoi

Variable autoencoders (vaes)

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

从设计交付到开发,轻松畅快高效率!

Bayesian inference problem, MCMC and variational inference

Markdown Mermaid Grass (1) Introduction à Mermaid

Parallax JS special effect JS carousel map plug-in
随机推荐
Variational graph auto-encoders (VGAE)
【算法篇】刷了两道大厂面试题,含泪 ”重学数组“
How does redis implement inventory deduction? How to prevent oversold?
The amazing nanopc-t4 (rk3399) is used as the initial configuration and related applications of the workstation
ArrayList of collection
2022年T电梯修理考试题库模拟考试平台操作
Internship: term understanding and handwriting interface
核芯物联蓝牙aoa定位系统服务器配置估算
100人成绩的平均
MDM data analysis function description
裁员真能拯救中国互联网?
Markdown drawing Mermaid practical tutorial
easypoi
视差js特效js轮播图插件
C#应用程序界面开发基础——窗体控制
Markdown mermaid种草(1)_ mermaid简介
微信小程序_8,视图与逻辑
1002_20181019
redisTemplate
计网 | 一文解析TCP协议所有知识点