<?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: Directory Listing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270858#M884502</link>
    <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;I do not have a UX box online to test it (so i am not sure if this works), but if you want to sort is first on user 4 Colomn  and second on group 5 Colomn ( 1st prio) , you are allowed to use multiple -k strings:&lt;BR /&gt;&lt;BR /&gt;ls -als /dir | sort -k 5,5 -k 4,4&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
    <pubDate>Fri, 07 May 2004 15:17:33 GMT</pubDate>
    <dc:creator>G. Vrijhoeven</dc:creator>
    <dc:date>2004-05-07T15:17:33Z</dc:date>
    <item>
      <title>Directory Listing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270853#M884494</link>
      <description>We want to list all files in a directory or file system by user and group.  How do you do this?</description>
      <pubDate>Fri, 07 May 2004 12:42:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270853#M884494</guid>
      <dc:creator>oscar munoz_1</dc:creator>
      <dc:date>2004-05-07T12:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Listing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270854#M884495</link>
      <description>find /dir_to_look_for -type f -user "user_name" -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;find /dir_to_look_for -type f -group "group_name" -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;Crude method&lt;BR /&gt;&lt;BR /&gt;ll -R /dir|grep "user/group"&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Fri, 07 May 2004 12:44:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270854#M884495</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-05-07T12:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Listing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270855#M884496</link>
      <description>cd to the desired directory.&lt;BR /&gt;&lt;BR /&gt;find . -user uname -print&lt;BR /&gt;OR&lt;BR /&gt;find . -group gname -print&lt;BR /&gt;&lt;BR /&gt;If you need more detailed listings then your the -exec option.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;find . -user uname -type f -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;This will recursively descend a file tree from the current directory and list the files.&lt;BR /&gt;&lt;BR /&gt;Man find for details.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2004 12:46:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270855#M884496</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-05-07T12:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Listing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270856#M884498</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You could use ls -als in combination with sort -k.&lt;BR /&gt;# ls -als /dir | sort -k &lt;NUMBER&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;/NUMBER&gt;</description>
      <pubDate>Fri, 07 May 2004 12:48:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270856#M884498</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-05-07T12:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Listing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270857#M884500</link>
      <description>Gideon:&lt;BR /&gt;Your command is almost working but I get some users out of the group sort.  I need the out put to be sorted by group as first priority and username by second priority.&lt;BR /&gt;&lt;BR /&gt;I did a ls -als to the directory and looked at the out put and noticed the 5th field was group.&lt;BR /&gt;so I typed ls -als /dir |sort -k 5,5&lt;BR /&gt;USer name is 4th field.</description>
      <pubDate>Fri, 07 May 2004 13:56:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270857#M884500</guid>
      <dc:creator>oscar munoz_1</dc:creator>
      <dc:date>2004-05-07T13:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Listing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270858#M884502</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;I do not have a UX box online to test it (so i am not sure if this works), but if you want to sort is first on user 4 Colomn  and second on group 5 Colomn ( 1st prio) , you are allowed to use multiple -k strings:&lt;BR /&gt;&lt;BR /&gt;ls -als /dir | sort -k 5,5 -k 4,4&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Fri, 07 May 2004 15:17:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-listing/m-p/3270858#M884502</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-05-07T15:17:33Z</dc:date>
    </item>
  </channel>
</rss>

