print lines matching a pattern
>gi|5524211|gb|AAD44166.1| cytochrome b [Elephas maximus maximus]
LCLYTHIGRNIYYGSYLYSETWNTGIMLLLITMATAFMGYVLPWGQMSFWGATVITNLFSAIPYIGTNLV
EWIWGGFSVDKATLNRFFAFHFILPFTMVALAGVHLTFLHETGSNNPLGLTSDSDKIPFHPYYTIKDFLG
LLILILLLLLLALLSPDMLGDPDNHMPADPLNTPLHIKPEWYFLFAYAILRSVPNKLGGVLALFLSIVIL
GLMPFLHTSKHRSMMLRPLSQALFWTLTMDLLTLTWIGSQPVEYPYTIIGQMASILYFSIILAFLPIAGX
IENY
@SEQ_ID
GATTTGGGGTTCAAAGCAGTATCGATCAAATAGTAAATCCATTTGTTCAACTCACAGTTT
+
!''*((((***+))%%%++)(%%%%).1***-+*''))**55CCF>>>>>>CCCCCCC65
cut OPTION... [FILE]
who | cut -d ' ' -f 1
find . -atime 0 | cut -d '/' -f 2,3
sort [OPTION]... [FILE]
who | cut -d ' ' -f 1 | sort | uniq -c | sort -k 1n,2
We ran a blast with -m8 output. So the following fields are displayed
separated by tab
.
report or omit repeated lines (Filter adjacent matching lines)
build and execute command lines from standard input xargs executes the command with any initial-arguments followed by items read from standard input.
Do not forget to add -l to process standard input line by line
find . -name '*.fasta' | xargs grep ">"
find . -name '*.fasta' | xargs -I fic cat fic >>allmysequences
wget http://www.uniprot.org/uniprot/ABCD1_MOUSE.fasta