<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Bash oneliner to extract all ids from a multifasta file]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/41164/bash-oneliner-to-extract-all-ids-from-a-multifasta-file?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/41164/bash-oneliner-to-extract-all-ids-from-a-multifasta-file?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/41164/bash-oneliner-to-extract-all-ids-from-a-multifasta-file</guid>
	<pubDate>Tue, 18 Feb 2020 08:06:09 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/41164/bash-oneliner-to-extract-all-ids-from-a-multifasta-file</link>
	<title><![CDATA[Bash oneliner to extract all ids from a multifasta file]]></title>
	<description><![CDATA[<code>#List of ids - one per line in allIds.txt

$ awk &#039;BEGIN{while((getline&lt;&quot;allIds.txt&quot;)&gt;0)l[&quot;&gt;&quot;$1]=1}/^&gt;/{f=!l[$1]}f&#039; seq.fa

# You can play with this f=!l[$1 ] if wanted to extract or not extract the ids</code>]]></description>
	<dc:creator>biogeek</dc:creator>
</item>

</channel>
</rss>