<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Compare : many and a big .txt files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262751#M51357</link>
    <description>Sounds like this is best performed by UNIX she'll programming - so in that sense this is not a SAS question. &lt;BR /&gt;What is the use case?</description>
    <pubDate>Sun, 10 Apr 2016 19:38:01 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-04-10T19:38:01Z</dc:date>
    <item>
      <title>Compare : many and a big .txt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262742#M51353</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a so many and big&amp;nbsp; text files .txt.&lt;/P&gt;
&lt;P&gt;I want to compare them quickly by using sas and unix commands.&lt;/P&gt;
&lt;P&gt;Like this:&lt;/P&gt;
&lt;P&gt;R/R1/ab.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;R/R1/wa.txt&lt;/P&gt;
&lt;P&gt;==================&lt;/P&gt;
&lt;P&gt;R/R2/ab.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;R/R2/wa.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to compare the R1 and R2 files one by one R1/ab.txt with R2/ab.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your answer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2016 16:33:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262742#M51353</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-04-10T16:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare : many and a big .txt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262743#M51354</link>
      <description>&lt;P&gt;Your question as it stands is vague.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. What do you have to start off with?&lt;/P&gt;
&lt;P&gt;2. Which part of this are you having difficulty with?&lt;/P&gt;
&lt;P&gt;3. What do you want&amp;nbsp;your output to look like?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2016 16:34:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262743#M51354</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-10T16:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compare : many and a big .txt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262745#M51355</link>
      <description>&lt;P&gt;So, if i was not clear&lt;/P&gt;
&lt;P&gt;I have a folders :R/R1 and R/R2&lt;/P&gt;
&lt;P&gt;In R1 and R2, I have a text files : a.ext, b.txt, .... in R1 and R2&lt;/P&gt;
&lt;P&gt;Every file in R1, I will be in R2, I want to compare R1/a.txt with R2/a.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the output, I want to get the name of the files with a diff and the difference lines in new file : R/dif/a_dif&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2016 16:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262745#M51355</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-04-10T16:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare : many and a big .txt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262746#M51356</link>
      <description>&lt;P&gt;1. Create a listing of files from directory R1- this is relatively straightforward in a unix environment. (ls filepath or &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/the-contents-of-SAS-data-null/m-p/256350#M49123" target="_self"&gt;see previous posts&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;2. If you're sure that you have the same in each folder you don't need to list the folders&lt;/P&gt;
&lt;P&gt;3. Build your compare command&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Execute compare command and store into a file or dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What have tried so far?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2016 18:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262746#M51356</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-10T18:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compare : many and a big .txt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262751#M51357</link>
      <description>Sounds like this is best performed by UNIX she'll programming - so in that sense this is not a SAS question. &lt;BR /&gt;What is the use case?</description>
      <pubDate>Sun, 10 Apr 2016 19:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262751#M51357</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-04-10T19:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compare : many and a big .txt files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262809#M51389</link>
      <description>&lt;P&gt;The UNIX command for comparing text files is &lt;FONT face="courier new,courier"&gt;diff&lt;/FONT&gt;. If files A and B are identical, &lt;FONT face="courier new,courier"&gt;diff A B&lt;/FONT&gt; will produce no output and return with exit code 0; differences will produce output and exit code 1, all other exit codes signal an error like file not found.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 06:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compare-many-and-a-big-txt-files/m-p/262809#M51389</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-11T06:16:00Z</dc:date>
    </item>
  </channel>
</rss>

