<?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: Unix Command in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142030#M37841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on the flavor of Unix you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Personally to get metadata about files I use a SAS data step to read the output of the ls command into a dataset. &lt;/P&gt;&lt;P&gt;2) and 3) sound like editor questions.&amp;nbsp; There are hundreds of editors for Unix, including running SAS interactively and using the program editor in the SAS Display Manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are able to use "dir" instead of "ls" to get a list of files then it looks like someone has already added some customizations to your Unix environment.&amp;nbsp; I would find out who has done that and ask them about how to use your computer and what tools they suggest you use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 16:25:28 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2013-11-13T16:25:28Z</dc:date>
    <item>
      <title>Unix Command</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142028#M37839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question on Unix commands.My O/S is UNIX.we are using Xterm.&lt;/P&gt;&lt;P&gt;I know some basic commands to run my sas programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to see latest files i am usin&lt;/P&gt;&lt;P&gt;dir -rlt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my question is if i want so see specific authour programs like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drwxrwsrwx&amp;nbsp;&amp;nbsp; 7 AuthorName&amp;nbsp; cpp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096 Jan 28&amp;nbsp; 2013 directoryname/&lt;/P&gt;&lt;P&gt;drwxrwsrwx&amp;nbsp;&amp;nbsp; 7 AuthorName&amp;nbsp; cpp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096 Oct&amp;nbsp; 3&amp;nbsp; 2012&amp;nbsp; directoryname/&lt;/P&gt;&lt;P&gt;drwxrwsrwx&amp;nbsp;&amp;nbsp; 7 MyName&amp;nbsp; cpp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096 Jan 28&amp;nbsp; 2013 directoryname/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*I created these directories or files*/&lt;/P&gt;&lt;P&gt;drwxrwsrwx&amp;nbsp;&amp;nbsp; 7 Myname cpp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096 Oct&amp;nbsp; 3&amp;nbsp; 2012&amp;nbsp; directoryname/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*I created these directories or files*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to see only Authorname created directories which command i need to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)In program i want to search some specific string , how can i search? (Example in Log: ERROR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Can i replace some specific string with another string like in windows i do CNTR+H then repalce the strings !!, In unix is there any cmd?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can some one guide me the online source with examples for basic + little advance Unix commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 15:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142028#M37839</guid>
      <dc:creator>sam369</dc:creator>
      <dc:date>2013-11-13T15:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Command</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142029#M37840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since these are strictly UNIX shell questions, I suggest that you post them on a UNIX forum instead (for the best response).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 15:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142029#M37840</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-11-13T15:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Command</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142030#M37841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on the flavor of Unix you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Personally to get metadata about files I use a SAS data step to read the output of the ls command into a dataset. &lt;/P&gt;&lt;P&gt;2) and 3) sound like editor questions.&amp;nbsp; There are hundreds of editors for Unix, including running SAS interactively and using the program editor in the SAS Display Manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are able to use "dir" instead of "ls" to get a list of files then it looks like someone has already added some customizations to your Unix environment.&amp;nbsp; I would find out who has done that and ask them about how to use your computer and what tools they suggest you use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 16:25:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142030#M37841</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-13T16:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Command</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142031#M37842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thanks LinusH and tom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;I customized few Unix cmd in alias.&lt;/P&gt;&lt;P&gt;Could you specify "There are hundreds of editors for Unix, including running SAS interactively and using the program editor in the SAS Display Manager"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some examples to know more about these&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 18:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142031#M37842</guid>
      <dc:creator>sam369</dc:creator>
      <dc:date>2013-11-13T18:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Command</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142032#M37843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As others said how the actual syntax needs to look like will depend on your UNIX shell. On a general level: You can issue a command which returns a list of files and then pipe this list into a second command doing some more filtering, eg:&lt;/P&gt;&lt;P&gt;ls -la | egrep ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below syntax might or might not work for you depending on the Unix you're using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A very powerful command is "find" which - I believe - is implemented for most Unix flavours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 02:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142032#M37843</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-14T02:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Command</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142033#M37844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Patrick!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for first point i used your ls- al | grep&amp;nbsp; option to get desired list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please give some source for FIND command, if possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 03:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142033#M37844</guid>
      <dc:creator>sam369</dc:creator>
      <dc:date>2013-11-15T03:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Command</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142034#M37845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i found this , thought will be useful &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://content.hccfl.edu/faculty/wayne_pollock/Unix/FindCmd.htm" title="http://content.hccfl.edu/faculty/wayne_pollock/Unix/FindCmd.htm"&gt;Unix/Linux "find" Command Tutorial &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 03:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142034#M37845</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-11-15T03:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Command</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142035#M37846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the great things about Unix/Linux is that there are a lot of "geeks" out there and it's not too hard to find answers and code for almost everything you're looking for, eg. for searching a string in a text file: &lt;A href="http://kapsblog.wordpress.com/2009/02/24/search-for-a-string-in-a-file-on-unixaix/" title="http://kapsblog.wordpress.com/2009/02/24/search-for-a-string-in-a-file-on-unixaix/"&gt;Search for a string in a file on UNIX/AIX | Kaps Blogs&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or for find:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://unixhelp.ed.ac.uk/CGI/man-cgi?find"&gt;http://unixhelp.ed.ac.uk/CGI/man-cgi?find&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://content.hccfl.edu/faculty/wayne_pollock/Unix/FindCmd.htm" title="http://content.hccfl.edu/faculty/wayne_pollock/Unix/FindCmd.htm"&gt; Unix/Linux "find" Command Tutorial &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 03:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142035#M37846</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-15T03:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Command</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142036#M37847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jagadish!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 03:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142036#M37847</guid>
      <dc:creator>sam369</dc:creator>
      <dc:date>2013-11-15T03:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Command</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142037#M37848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. The command FIND is useful for finding files or directories, etc. in the filesystem &lt;/P&gt;&lt;P&gt;find /path/to/directories -user friedegg -type d&lt;/P&gt;&lt;P&gt;2. The command GREP is useful for searching the contents of textual files&lt;/P&gt;&lt;P&gt;grep ERROR /path/to/foo.log&lt;/P&gt;&lt;P&gt;3. The command SED is usefule for performing regular expression find and replace &lt;/P&gt;&lt;P&gt;sed 's/target/replace/g' /path/to/input.file &amp;gt; /path/to/output.file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many more utilities which can also be used for this tasks and these commands also have far more functionality that what is strictly exhibited above...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 03:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142037#M37848</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2013-11-18T03:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Command</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142038#M37849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Fried Egg!!! i am still researching the above FIND,GREP and SED ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 17:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unix-Command/m-p/142038#M37849</guid>
      <dc:creator>sam369</dc:creator>
      <dc:date>2013-11-25T17:42:27Z</dc:date>
    </item>
  </channel>
</rss>

