<?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 Juletip #9 Search for text string in SAS Community Nordic</title>
    <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-9-Search-for-text-string/m-p/520277#M201</link>
    <description>&lt;P&gt;Actually this is a tip I got from the great SAS developers at Odense Kommune.&lt;/P&gt;
&lt;P&gt;It’s a tip about searching for text strings in files and folders.&lt;/P&gt;
&lt;P&gt;E.g. you want to find all files where you have used a ’PROC TRANSPOSE’. Or you want to find all files where a specific environment variable is used. That was the case when I got this tip.&lt;/P&gt;
&lt;P&gt;I bet this could be solved in many ways and by many tools.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Windows&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;On Windows you can download (for free)&amp;nbsp;a tool called ”Agent Ransack” &lt;A href="https://www.mythicsoft.com/agentransack/" target="_blank"&gt;https://www.mythicsoft.com/agentransack/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just type the text string you want to search for, choose which folder to search and submit.&lt;/P&gt;
&lt;P&gt;In this example there are two files containing the string SAS_ROOT_FOLDER.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ransack.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25542i6A334A4FCF792BA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="ransack.PNG" alt="ransack.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Unix/Linux&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If you are on a Linux you can use a command like this one:&lt;/P&gt;
&lt;P&gt;grep -irw --include=\*.sas "SAS_ROOT_FOLDER" /thesasfolder/programs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This command will search all .sas files in the folder ’/thesasfolder/programs’ and subfolders for the text string ’SAS_ROOT_FOLDER’.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Merry Christmas&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 07:53:48 GMT</pubDate>
    <dc:creator>ThomasFrederiksen</dc:creator>
    <dc:date>2018-12-11T07:53:48Z</dc:date>
    <item>
      <title>Juletip #9 Search for text string</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-9-Search-for-text-string/m-p/520277#M201</link>
      <description>&lt;P&gt;Actually this is a tip I got from the great SAS developers at Odense Kommune.&lt;/P&gt;
&lt;P&gt;It’s a tip about searching for text strings in files and folders.&lt;/P&gt;
&lt;P&gt;E.g. you want to find all files where you have used a ’PROC TRANSPOSE’. Or you want to find all files where a specific environment variable is used. That was the case when I got this tip.&lt;/P&gt;
&lt;P&gt;I bet this could be solved in many ways and by many tools.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Windows&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;On Windows you can download (for free)&amp;nbsp;a tool called ”Agent Ransack” &lt;A href="https://www.mythicsoft.com/agentransack/" target="_blank"&gt;https://www.mythicsoft.com/agentransack/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just type the text string you want to search for, choose which folder to search and submit.&lt;/P&gt;
&lt;P&gt;In this example there are two files containing the string SAS_ROOT_FOLDER.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ransack.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25542i6A334A4FCF792BA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="ransack.PNG" alt="ransack.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Unix/Linux&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If you are on a Linux you can use a command like this one:&lt;/P&gt;
&lt;P&gt;grep -irw --include=\*.sas "SAS_ROOT_FOLDER" /thesasfolder/programs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This command will search all .sas files in the folder ’/thesasfolder/programs’ and subfolders for the text string ’SAS_ROOT_FOLDER’.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Merry Christmas&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 07:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-9-Search-for-text-string/m-p/520277#M201</guid>
      <dc:creator>ThomasFrederiksen</dc:creator>
      <dc:date>2018-12-11T07:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Juletip #9 Search for text string</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-9-Search-for-text-string/m-p/520281#M202</link>
      <description>Notepad++ also has a "search in files" option...&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2018 08:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-9-Search-for-text-string/m-p/520281#M202</guid>
      <dc:creator>andypandy_swe</dc:creator>
      <dc:date>2018-12-11T08:15:39Z</dc:date>
    </item>
  </channel>
</rss>

