<?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: File Manipulation Examples Using Tac, Rev, Paste, and Join Unix Commands</title>
	<atom:link href="http://www.thegeekstuff.com/2009/10/file-manipulation-examples-using-tac-rev-paste-and-join-unix-commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2009/10/file-manipulation-examples-using-tac-rev-paste-and-join-unix-commands/</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:04:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mark D. Blackwell</title>
		<link>http://www.thegeekstuff.com/2009/10/file-manipulation-examples-using-tac-rev-paste-and-join-unix-commands/comment-page-1/#comment-169168</link>
		<dc:creator>Mark D. Blackwell</dc:creator>
		<pubDate>Sun, 01 Jan 2012 18:36:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2536#comment-169168</guid>
		<description>Using tabs as the separator with Gnu join (even though they look better) failed (at least on cygwin). I&#039;m using:
$ join --version
join (GNU coreutils) 8.14
Packaged by Cygwin (8.14-1)

I got this error:
$ join -t &quot;\t&quot; -1 1 -2 2 temp emp-bonus
join: multi-character tab `\\t&#039;. 

Colons also are a common field separator in Unix. These commands work well:
$ paste -d : emp-number emp-firstname emp-lastname &gt; temp
$ join -t : -1 1 -2 2 temp emp-bonus

$ cat emp-firstname emp-number emp-lastname emp-bonus
Emma
Alex
Madisonny
Sanjay
Nisha
100
200
300
400
500
Thomas
Jason
Randy
Gupta
Singh
$5,000:100
$5,500:200
$6,000:300
$7,000:400
$9,500:500

$ paste -d : emp-number emp-firstname emp-lastname &gt; temp
$ cat temp
100:Emma:Thomas
200:Alex:Jason
300:Madisonny:Randy
400:Sanjay:Gupta
500:Nisha:Singh

$ join -t : -1 1 -2 2 temp emp-bonus
100:Emma:Thomas:$5,000
200:Alex:Jason:$5,500
300:Madison:Randy:$6,000
400:Sanjay:Gupta:$7,000
500:Nisha:Singh:$9,500

To tab-space the output (though long fields look bad):
$ join -t : -1 1 -2 2 temp emp-bonus &#124; tr : &quot;\t&quot;
100     Emma    Thomas  $5,000
200     Alex    Jason   $5,500
300     Madisonny       Randy   $6,000
400     Sanjay  Gupta   $7,000
500     Nisha   Singh   $9,500</description>
		<content:encoded><![CDATA[<p>Using tabs as the separator with Gnu join (even though they look better) failed (at least on cygwin). I&#8217;m using:<br />
$ join &#8211;version<br />
join (GNU coreutils) 8.14<br />
Packaged by Cygwin (8.14-1)</p>
<p>I got this error:<br />
$ join -t &#8220;\t&#8221; -1 1 -2 2 temp emp-bonus<br />
join: multi-character tab `\\t&#8217;. </p>
<p>Colons also are a common field separator in Unix. These commands work well:<br />
$ paste -d : emp-number emp-firstname emp-lastname &gt; temp<br />
$ join -t : -1 1 -2 2 temp emp-bonus</p>
<p>$ cat emp-firstname emp-number emp-lastname emp-bonus<br />
Emma<br />
Alex<br />
Madisonny<br />
Sanjay<br />
Nisha<br />
100<br />
200<br />
300<br />
400<br />
500<br />
Thomas<br />
Jason<br />
Randy<br />
Gupta<br />
Singh<br />
$5,000:100<br />
$5,500:200<br />
$6,000:300<br />
$7,000:400<br />
$9,500:500</p>
<p>$ paste -d : emp-number emp-firstname emp-lastname &gt; temp<br />
$ cat temp<br />
100:Emma:Thomas<br />
200:Alex:Jason<br />
300:Madisonny:Randy<br />
400:Sanjay:Gupta<br />
500:Nisha:Singh</p>
<p>$ join -t : -1 1 -2 2 temp emp-bonus<br />
100:Emma:Thomas:$5,000<br />
200:Alex:Jason:$5,500<br />
300:Madison:Randy:$6,000<br />
400:Sanjay:Gupta:$7,000<br />
500:Nisha:Singh:$9,500</p>
<p>To tab-space the output (though long fields look bad):<br />
$ join -t : -1 1 -2 2 temp emp-bonus | tr : &#8220;\t&#8221;<br />
100     Emma    Thomas  $5,000<br />
200     Alex    Jason   $5,500<br />
300     Madisonny       Randy   $6,000<br />
400     Sanjay  Gupta   $7,000<br />
500     Nisha   Singh   $9,500</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: argv</title>
		<link>http://www.thegeekstuff.com/2009/10/file-manipulation-examples-using-tac-rev-paste-and-join-unix-commands/comment-page-1/#comment-77953</link>
		<dc:creator>argv</dc:creator>
		<pubDate>Sat, 08 Jan 2011 04:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2536#comment-77953</guid>
		<description>isn&#039;t it possible to emulate the basic function of paste with the shell, using nested for loops and printf?

is paste another one of unix&#039;s many redundant utilities?

is paste(1) redundant? (at least partially)
here&#039;s an example of what i mean:
http://pastebin.com/4grdppt9</description>
		<content:encoded><![CDATA[<p>isn&#8217;t it possible to emulate the basic function of paste with the shell, using nested for loops and printf?</p>
<p>is paste another one of unix&#8217;s many redundant utilities?</p>
<p>is paste(1) redundant? (at least partially)<br />
here&#8217;s an example of what i mean:<br />
<a href="http://pastebin.com/4grdppt9" rel="nofollow">http://pastebin.com/4grdppt9</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: litd</title>
		<link>http://www.thegeekstuff.com/2009/10/file-manipulation-examples-using-tac-rev-paste-and-join-unix-commands/comment-page-1/#comment-73206</link>
		<dc:creator>litd</dc:creator>
		<pubDate>Tue, 14 Dec 2010 19:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2536#comment-73206</guid>
		<description>Hi Jim,

Thanks for the tip. However, would you please use the sample above to show the result file using tr?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Jim,</p>
<p>Thanks for the tip. However, would you please use the sample above to show the result file using tr?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.thegeekstuff.com/2009/10/file-manipulation-examples-using-tac-rev-paste-and-join-unix-commands/comment-page-1/#comment-72844</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Sun, 12 Dec 2010 06:27:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2536#comment-72844</guid>
		<description>to use tabs as delimiters instead of commas change the -t parameter.

if you want to change the commas to tabs then use tr</description>
		<content:encoded><![CDATA[<p>to use tabs as delimiters instead of commas change the -t parameter.</p>
<p>if you want to change the commas to tabs then use tr</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: litd</title>
		<link>http://www.thegeekstuff.com/2009/10/file-manipulation-examples-using-tac-rev-paste-and-join-unix-commands/comment-page-1/#comment-39404</link>
		<dc:creator>litd</dc:creator>
		<pubDate>Mon, 15 Mar 2010 16:15:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2536#comment-39404</guid>
		<description>Hi,

I have a question about join.

how could the output file use tab instead of space as separator in the above sample?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a question about join.</p>
<p>how could the output file use tab instead of space as separator in the above sample?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JJ</title>
		<link>http://www.thegeekstuff.com/2009/10/file-manipulation-examples-using-tac-rev-paste-and-join-unix-commands/comment-page-1/#comment-19901</link>
		<dc:creator>JJ</dc:creator>
		<pubDate>Tue, 20 Oct 2009 10:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2536#comment-19901</guid>
		<description>tac command is a new one for me ... Thanks!!</description>
		<content:encoded><![CDATA[<p>tac command is a new one for me &#8230; Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danaville &#187; Blog Archive &#187; unix</title>
		<link>http://www.thegeekstuff.com/2009/10/file-manipulation-examples-using-tac-rev-paste-and-join-unix-commands/comment-page-1/#comment-19837</link>
		<dc:creator>Danaville &#187; Blog Archive &#187; unix</dc:creator>
		<pubDate>Mon, 19 Oct 2009 17:07:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2536#comment-19837</guid>
		<description>[...]  File Manipulation Examples Using Tac, Rev, Paste, and Join unix .  In this article, let us review how to use unix tac command, rev command, paste command, and join command with practical examples. 1. tac command &#8211; Print. [...]</description>
		<content:encoded><![CDATA[<p>[...]  File Manipulation Examples Using Tac, Rev, Paste, and Join unix .  In this article, let us review how to use unix tac command, rev command, paste command, and join command with practical examples. 1. tac command &#8211; Print. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mauricio</title>
		<link>http://www.thegeekstuff.com/2009/10/file-manipulation-examples-using-tac-rev-paste-and-join-unix-commands/comment-page-1/#comment-19827</link>
		<dc:creator>Mauricio</dc:creator>
		<pubDate>Mon, 19 Oct 2009 12:58:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2536#comment-19827</guid>
		<description>Excelente página

Translation: Spanish  » English
	 	
Excellent page</description>
		<content:encoded><![CDATA[<p>Excelente página</p>
<p>Translation: Spanish  » English</p>
<p>Excellent page</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: louic</title>
		<link>http://www.thegeekstuff.com/2009/10/file-manipulation-examples-using-tac-rev-paste-and-join-unix-commands/comment-page-1/#comment-19814</link>
		<dc:creator>louic</dc:creator>
		<pubDate>Mon, 19 Oct 2009 09:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=2536#comment-19814</guid>
		<description>I did not know about the paste command, but it will be very useful for me. Thanks again, for the clear and to-the-point examples!</description>
		<content:encoded><![CDATA[<p>I did not know about the paste command, but it will be very useful for me. Thanks again, for the clear and to-the-point examples!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.thegeekstuff.com

Served from: www.thegeekstuff.com @ 2012-02-09 15:59:43 -->
