<?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: Commands to Find and replace in file(s0) !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/43835/commands-to-find-and-replace-in-files0?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/43835/commands-to-find-and-replace-in-files0?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/43835/commands-to-find-and-replace-in-files0</guid>
	<pubDate>Sun, 27 Mar 2022 21:52:23 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/43835/commands-to-find-and-replace-in-files0</link>
	<title><![CDATA[Commands to Find and replace in file(s0) !]]></title>
	<description><![CDATA[<code>#Use SED
sed -i &#039;s/my/your/g&#039; test.txt test2.txt test3.txt

#Use FIND and SED
find . -name *.txt -exec sed -i &#039;s/my/your/g&#039; {} \;

#Use AWK
awk &#039;{sub(/{OLD_TERM}/,{NEW_TERM}); print}&#039; {file}
awk &#039;{sub(/my/,your); print}&#039; test.txt
awk &#039;{gsub(/i/,&quot;a&quot;); print}&#039; test.txt</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>

</channel>
</rss>