当前位置:网站首页>管道 | 与重定向 >
管道 | 与重定向 >
2022-06-28 19:46:00 【Bio大恐龙】
系列文章目录
1.1 压缩与解压缩命令
2.1 head、tail查看文件
3 grep文本搜索工具
4 管道 | 与重定向 >
一、管道 |
管道仅能处理经由前面一个指令传出的正确输出信息,也就是standard output的信息,对于standard error信息没有直接处理能力。
然后将standard output作为标准的输入传递给下一个命令。
使用格式:
[命令] | [命令]
例如:
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
二、重定向 >
使用 > 可以将本应该出现在屏幕的标准输出信息重定向到一个文件中。
使用格式:
[命令] > [命令]
例如:
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
边栏推荐
- h5向日葵作业
- The first meta universe concept novel, meta universe 2086, won the upper attack meta universe award in 2022
- Matlab 2D or 3D triangulation
- 论文阅读:Duplex Contextual Relation Network for Polyp Segmentation
- Bayesian inference problem, MCMC and variational inference
- R language GLM generalized linear model: logistic regression, Poisson regression fitting mouse clinical trial data (dose and response) examples and self-test questions
- R语言GLM广义线性模型:逻辑回归、泊松回归拟合小鼠临床试验数据(剂量和反应)示例和自测题
- 5g NR MBS architecture introduction
- I. The HR system is put on the enterprise wechat ISV to enhance the in-depth application of enterprise wechat in service chain retail and other industries
- Past blue bridge cup test questions ants catch cold
猜你喜欢

Markdown drawing Mermaid practical tutorial

2022年P气瓶充装考试练习题及在线模拟考试

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

ArrayList of collection

Markdown mermaid種草(1)_ mermaid簡介

变分自编码器 (Variational Autoencoders, VAEs)

Markdown mermaid种草(1)_ mermaid简介

视频压缩处理之ffmpeg用法

30讲 线性代数 第四讲 线性方程组

echart:横向柱状图的类目文字位置调整
随机推荐
Can py SQL get the table structure?
Priority problem when local variables and global variables in C language have the same name (when local variables and global variables exist at the same time, local variables are preferred to be refer
two thousand three hundred and forty-two
机器学习笔记 temperature+Softmax
Leetcode week 299
事实/论断/断言/结论/断定/判定
easypoi
R language GLM generalized linear model: logistic regression, Poisson regression fitting mouse clinical trial data (dose and response) examples and self-test questions
智能计算系统2 bangc算子开发的demo (CPU和MLU270的异构编程流程)
From design delivery to development, it is easy and efficient!
The amazing nanopc-t4 (rk3399) is used as the initial configuration and related applications of the workstation
C#应用程序界面开发基础——窗体控制
Design of secsha system
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?
Concours de segmentation des images gastro - intestinales de kaggle Baseline
Xiaobai's e-commerce business is very important to choose the right mall system!
easypoi
Kaggle肠胃道图像分割比赛baseline
还在付费下论文吗?快来跟我一起白piao知网
为什么C语言用使用其他文件的结构体变量时,声明结构体别名还不行,必须使用本名?(使用别名时不能加struct)