<?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 / Using ls command or the find command in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unix-Using-ls-command-or-the-find-command/m-p/711319#M37989</link>
    <description>&lt;P&gt;You need to use a maxdepth of 0 to stay in the root directory of your search.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2021 22:49:39 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-01-13T22:49:39Z</dc:date>
    <item>
      <title>Unix / Using ls command or the find command</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unix-Using-ls-command-or-the-find-command/m-p/711265#M37986</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried to use the following find command&lt;/P&gt;
&lt;P&gt;find&amp;nbsp; -maxdepth 1 -type f /dwh_operation/sasprocess/smp_production/smp_ref/sasmacro&lt;/P&gt;
&lt;P&gt;to get the file listing into that directory but without getting those from the subfolders.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I have tried the ls command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ls&amp;nbsp;/dwh_operation/sasprocess/smp_production/smp_ref/sasmacro&amp;nbsp;-l --time-style=long-iso&lt;/P&gt;
&lt;P&gt;so, I am getting all the information on a file that I need but I am getting also subfoldername into the listing as well as the listing of the files hosted into those subfolder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to use the ls command to get the listing of the file only in the specify folder not those from the subfolder&lt;/P&gt;
&lt;P&gt;Thanks in advance for you help.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 20:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unix-Using-ls-command-or-the-find-command/m-p/711265#M37986</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-01-13T20:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unix / Using ls command or the find command</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unix-Using-ls-command-or-the-find-command/m-p/711273#M37988</link>
      <description>&lt;P&gt;I don't quite get what the question is.&lt;/P&gt;
&lt;P&gt;If you want to limit the ls command from diving into the subdirectories use the -d option.&lt;/P&gt;
&lt;PRE&gt;ls -ld /dwh_operation/sasprocess/smp_production/smp_ref/sasmacro/* &lt;/PRE&gt;
&lt;P&gt;If you want to get all of the information of the ls command output from the find command there are options to do that.&amp;nbsp; Look at the -printf option.&lt;/P&gt;
&lt;P&gt;Examples:&lt;/P&gt;
&lt;PRE&gt;Here is meaning of the -printf options used.
 %p - Filename without path.
 %s - Size in bytes.
 %Td%Tb%TY:%TT - LASTMOD in SAS DATETIME format.
   %T - Means use the last time file was modified.
     d - Day of month (01-31)
     b - Short month string (Jan, Feb, ...)
     Y - Four digit year
     T - Time (HH:MM:SS.sssssss)
 %Y - Type of the file, including following symbolic links.
 %M - File permissions in sybolic form (-rwxrwxrwx).
 %u - Name of the file owner.
 %g - Name of the file group.
 %h - Path of the file, including path specified on command line.
 %l - Path to the target of a symbolic link (else blank).
 \n - Add linefeed to end of string.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 20:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unix-Using-ls-command-or-the-find-command/m-p/711273#M37988</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-13T20:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unix / Using ls command or the find command</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unix-Using-ls-command-or-the-find-command/m-p/711319#M37989</link>
      <description>&lt;P&gt;You need to use a maxdepth of 0 to stay in the root directory of your search.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 22:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unix-Using-ls-command-or-the-find-command/m-p/711319#M37989</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-13T22:49:39Z</dc:date>
    </item>
  </channel>
</rss>

