<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Copy</title><link>https://sourceforge.net/p/funnelsort/wiki/Copy/</link><description>Recent changes to Copy</description><atom:link href="https://sourceforge.net/p/funnelsort/wiki/Copy/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 04 Dec 2013 16:24:40 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/funnelsort/wiki/Copy/feed" rel="self" type="application/rss+xml"/><item><title>Copy modified by Chris DeGreef</title><link>https://sourceforge.net/p/funnelsort/wiki/Copy/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Funnel can be used as a copy utility as well - it is not just a sort utility.  Copy is implemented as a sort on the row number.  The row number is a "hidden" field on each row that starts at 0 for the first row and increases by one for each row as it is read.&lt;/p&gt;
&lt;p&gt;Funnel can reverse the order of the original file as well.  It just sorts the rows by a descending row number.&lt;/p&gt;
&lt;p&gt;There are three possible values for the "--copy" parameter.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Copy Value&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;original&lt;/td&gt;
&lt;td&gt;don't change the order of the rows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;reversed&lt;/td&gt;
&lt;td&gt;reverse the order of the rows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;byKey&lt;/td&gt;
&lt;td&gt;specify keys to control the order&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The "byKey" value is the default for Funnel.  It is how to explicitly request a sort.  These two examples would produce the same results.  &lt;a class="" href="https://sourceforge.net/p/funnelsort/discussion/howto/thread/1d24eb37/#fe85"&gt;Copying with a key&lt;/a&gt; and &lt;a class="" href="https://sourceforge.net/p/funnelsort/discussion/howto/thread/493acffb/#df06"&gt;Sorting on the entire contents of a row&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris DeGreef</dc:creator><pubDate>Wed, 04 Dec 2013 16:24:40 -0000</pubDate><guid>https://sourceforge.net91c3aeadc599232b8351860ff100ed8530d340f8</guid></item></channel></rss>