<?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 script to find difference between two files !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/43830/bash-script-to-find-difference-between-two-files?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/43830/bash-script-to-find-difference-between-two-files?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/43830/bash-script-to-find-difference-between-two-files</guid>
	<pubDate>Thu, 24 Mar 2022 20:15:38 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/43830/bash-script-to-find-difference-between-two-files</link>
	<title><![CDATA[Bash script to find difference between two files !]]></title>
	<description><![CDATA[<code>#lines which are exist only in file2:

grep -Fxvf file1 file2 &gt; file3

#lines which are exist only in file1:

grep -Fxvf file2 file1 &gt; file3

#lines which are exist in both files:

grep -Fxf file1 file2 &gt; file3</code>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>

</channel>
</rss>