<?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: Wire posts tagged with 'perloneliner']]></title>
	<link>https://bioinformaticsonline.com/thewire/tag/perloneliner?</link>
	<atom:link href="https://bioinformaticsonline.com/thewire/tag/perloneliner?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/31546</guid>
	<pubDate>Mon, 13 Mar 2017 08:28:36 -0500</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/31546</link>
	<title><![CDATA[Wire post by Abhimanyu Singh]]></title>
	<description><![CDATA[
<p>#Random #sequence generator with #perloneliner : $ perl -e '$x=int(rand(1000)); printf( "chr1\t%s\t%s", $x, $x + 10)'</p>
]]></description>
	<dc:creator>Abhimanyu Singh</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/31217</guid>
	<pubDate>Wed, 01 Mar 2017 17:55:34 -0600</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/31217</link>
	<title><![CDATA[Wire post by Shruti Paniwala]]></title>
	<description><![CDATA[
<p>Remove all blank lines from file. perl -i.bak -n -e "print if /\S/" ../finalSample.fa  #Perl #Tricks #PerlOneliner</p>
]]></description>
	<dc:creator>Shruti Paniwala</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/29195</guid>
	<pubDate>Fri, 16 Sep 2016 03:00:15 -0500</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/29195</link>
	<title><![CDATA[Wire post by Radha Agarkar]]></title>
	<description><![CDATA[
<p>Extract sequence by using Ids file (assuming one ids in a line): perl -ne 'if(/^&gt;(\S+)/){$c=$i{$1}}$c?print:chomp;$i{$_}=1 if @ARGV' ids.file fasta.file #PerlTricks #PerlOneliner #Perl #Extract #Ids #</p>
]]></description>
	<dc:creator>Radha Agarkar</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/29193</guid>
	<pubDate>Fri, 16 Sep 2016 02:57:36 -0500</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/29193</link>
	<title><![CDATA[Wire post by Radha Agarkar]]></title>
	<description><![CDATA[
<p>Extract fasta sequence by Ids: perl -ne 'if(/^&gt;(\S+)/){$c=grep{/^$1$/}qw(id1 id2)}print if $c' fasta.file  #Perl #PerlOneliner #PerlTrick #Extract #Ids #Fasta</p>
]]></description>
	<dc:creator>Radha Agarkar</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/29189</guid>
	<pubDate>Thu, 15 Sep 2016 11:15:56 -0500</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/29189</link>
	<title><![CDATA[Wire post by Shruti Paniwala]]></title>
	<description><![CDATA[
<p>Rename the fasta name perl -ane 'if(/\&gt;/){$a++; @foo = split /\s+/;$_ = join '_', @foo; print "$_\n"}else{print;}' your.fasta &gt; new.fa #PerlTrick #PerlOneliner #Perl</p>
]]></description>
	<dc:creator>Shruti Paniwala</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/28620</guid>
	<pubDate>Fri, 05 Aug 2016 04:08:30 -0500</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/28620</link>
	<title><![CDATA[Wire post by Poonam Mahapatra]]></title>
	<description><![CDATA[
<p>Replace space with tab: perl -lpe 's/\s/\t/g' &lt; trf_file.dat &gt; outfile.txt #TRF #Tab #Space #Replace #Perl #PerlTrick #PerlOneliner</p>
]]></description>
	<dc:creator>Poonam Mahapatra</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/26583</guid>
	<pubDate>Wed, 09 Mar 2016 08:23:46 -0600</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/26583</link>
	<title><![CDATA[Wire post by Neel]]></title>
	<description><![CDATA[
<p>Delete space from FASTA header: perl -pe 's/&gt;\S+\K.+//' &lt; file.fasta &gt; new_file.fasta #PerlOneLiner #Trick #Perl #Space #Fasta</p>
]]></description>
	<dc:creator>Neel</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/24323</guid>
	<pubDate>Mon, 07 Sep 2015 12:14:57 -0500</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/24323</link>
	<title><![CDATA[Wire post by Rahul Nayak]]></title>
	<description><![CDATA[
<p>Search and replace the string 'this' with the string 'that' in the file filename. perl -p -i -e 's/this/that/g' filename #Perl #Trick #PerlOneLiner #Tipsoftheday #Replace #FindandReplace</p>
]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/11710</guid>
	<pubDate>Wed, 11 Jun 2014 03:54:53 -0500</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/11710</link>
	<title><![CDATA[Wire post by Jit]]></title>
	<description><![CDATA[
<p>Count the number of occurrence of pattern in a file using Perl. perl -e '$_ = &lt;&gt;; print scalar ( () = m/needle/g ), "\n"'  #Perl #Perloneliner #Count #Occurrence</p>
]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/10754</guid>
	<pubDate>Sun, 11 May 2014 10:16:51 -0500</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/10754</link>
	<title><![CDATA[Wire post by Rahul Nayak]]></title>
	<description><![CDATA[
<p>perl -nle '$count += () = /XY[0-9]+/g; END {print $count}' inputfile #Count #Perl #Perloneliner</p>
]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/5216</guid>
	<pubDate>Tue, 01 Oct 2013 07:03:26 -0500</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/5216</link>
	<title><![CDATA[Wire post by Abhimanyu Singh]]></title>
	<description><![CDATA[
<p>To print the matching pattern line perl -ne '/pattern/ &amp;&amp; print'  infile.gtf #Perloneliner #Tipsoftheday</p>
]]></description>
	<dc:creator>Abhimanyu Singh</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/thewire/view/1712</guid>
	<pubDate>Sat, 10 Aug 2013 15:01:33 -0500</pubDate>
	<link>https://bioinformaticsonline.com/thewire/view/1712</link>
	<title><![CDATA[Wire post by Jitendra Narayan]]></title>
	<description><![CDATA[
<p>Write something at the bottom of the file without opening it. perl -p -i -e 'eof &amp;&amp; s/$/\nWord/;' &lt;filename&gt; #Tipsoftheday #Perloneliner</p>
]]></description>
	<dc:creator>Jitendra Narayan</dc:creator>
</item>

</channel>
</rss>