<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: How to replace newlines with commas, tabs etc (merge lines)</title> <atom:link href="https://bogdan.org.ua/2010/11/16/how-to-replace-newlines-with-commas-tabs-etc-merge-lines.html/feed" rel="self" type="application/rss+xml" /><link>https://bogdan.org.ua/2010/11/16/how-to-replace-newlines-with-commas-tabs-etc-merge-lines.html</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Mon, 01 Jan 2024 17:12:20 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=3.8.27</generator> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2010/11/16/how-to-replace-newlines-with-commas-tabs-etc-merge-lines.html#comment-142284</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Thu, 15 Nov 2012 10:42:56 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=1208#comment-142284</guid> <description><![CDATA[Thanks for the feedback, Ben. I actually also prefer &#039;cut&#039; now, unless delimiters are unclear - awk seems to do a better job at automatically identifying what is a delimiter and what is not. Didn&#039;t know you can merge paste&#039;s arguments into one :)]]></description> <content:encoded><![CDATA[<p>Thanks for the feedback, Ben. I actually also prefer &#8216;cut&#8217; now, unless delimiters are unclear &#8211; awk seems to do a better job at automatically identifying what is a delimiter and what is not. Didn&#8217;t know you can merge paste&#8217;s arguments into one <img
src="https://bogdan.org.ua/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p> ]]></content:encoded> </item> <item><title>By: buggy</title><link>https://bogdan.org.ua/2010/11/16/how-to-replace-newlines-with-commas-tabs-etc-merge-lines.html#comment-142273</link> <dc:creator><![CDATA[buggy]]></dc:creator> <pubDate>Wed, 14 Nov 2012 20:52:55 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=1208#comment-142273</guid> <description><![CDATA[hello,
thank you for your the pointers, good read. this is my feedback to you and future readers:
instead of
&lt;code&gt;awk &#039;{print $2}&#039;&lt;/code&gt;
i prefer
&lt;code&gt;cut -f2 -d&quot; &quot;&lt;/code&gt;
as in &quot;cut out field number 2 with delimiter &#039;space character&#039;&quot; (if you have tab-delimited data, you can leave this one out as the default is tab-delimited)
it is faster and easier to type
also, some stuff can be shortened for quick typing, such as
&lt;code&gt;paste -s -d &quot;,&quot;&lt;/code&gt;
becomes
&lt;code&gt;paste -sd,&lt;/code&gt;
cheers, ben]]></description> <content:encoded><![CDATA[<p>hello,<br
/> thank you for your the pointers, good read. this is my feedback to you and future readers:</p><p>instead of<br
/> <code>awk '{print $2}'</code><br
/> i prefer<br
/> <code>cut -f2 -d" "</code><br
/> as in &#8220;cut out field number 2 with delimiter &#8216;space character&#8217;&#8221; (if you have tab-delimited data, you can leave this one out as the default is tab-delimited)<br
/> it is faster and easier to type</p><p>also, some stuff can be shortened for quick typing, such as<br
/> <code>paste -s -d ","</code><br
/> becomes<br
/> <code>paste -sd,</code></p><p>cheers, ben</p> ]]></content:encoded> </item> </channel> </rss>