<?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: ls -l with AWK/grep in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-l-with-awk-grep/m-p/2757630#M944770</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In addition, if you want to search within a filesystem :&lt;BR /&gt;&lt;BR /&gt;# find . -type f -group wmt -xdev -exec ls -l {} \; &lt;BR /&gt;&lt;BR /&gt;The xdev option will causes find to avoid crossing any file system mount points.&lt;BR /&gt;&lt;BR /&gt;Fr??d??ric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Jul 2002 05:42:08 GMT</pubDate>
    <dc:creator>Frederic Sevestre</dc:creator>
    <dc:date>2002-07-04T05:42:08Z</dc:date>
    <item>
      <title>ls -l with AWK/grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-l-with-awk-grep/m-p/2757627#M944767</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm wanting to obtain the list of files/directories within several filesystems, i.e traversing just 1 level into the paths of these filesystems, and getting only the files/directories belonging to a particular project group within these filesystems. &lt;BR /&gt;&lt;BR /&gt;Could anyone help me on this matter? I tried doing:&lt;BR /&gt; df -k|grep wmt&lt;BR /&gt;&lt;BR /&gt;which only list filesystems having wmt within the file name.&lt;BR /&gt;I also did :&lt;BR /&gt; ls -l|grep wmt&lt;BR /&gt;&lt;BR /&gt;which also list filesystems having wmt within the file name.&lt;BR /&gt;&lt;BR /&gt;I would like to list the names of the files within a filesystem belonging to the group owner "wmt", not files having "wmt" as its substring. &lt;BR /&gt;&lt;BR /&gt;Could some one help me out?&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jul 2002 05:17:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-l-with-awk-grep/m-p/2757627#M944767</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-07-04T05:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: ls -l with AWK/grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-l-with-awk-grep/m-p/2757628#M944768</link>
      <description>&lt;BR /&gt;What about:&lt;BR /&gt;&lt;BR /&gt;find . -group &lt;YOUR group="" name=""&gt;  -exec  ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer&lt;BR /&gt;&lt;/YOUR&gt;</description>
      <pubDate>Thu, 04 Jul 2002 05:29:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-l-with-awk-grep/m-p/2757628#M944768</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2002-07-04T05:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: ls -l with AWK/grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-l-with-awk-grep/m-p/2757629#M944769</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You should use find :&lt;BR /&gt;&lt;BR /&gt;# cd &lt;YOUR directory=""&gt;&lt;BR /&gt;# find . -type f -group wmt -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;Fr??d??ric&lt;/YOUR&gt;</description>
      <pubDate>Thu, 04 Jul 2002 05:31:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-l-with-awk-grep/m-p/2757629#M944769</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2002-07-04T05:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: ls -l with AWK/grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-l-with-awk-grep/m-p/2757630#M944770</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In addition, if you want to search within a filesystem :&lt;BR /&gt;&lt;BR /&gt;# find . -type f -group wmt -xdev -exec ls -l {} \; &lt;BR /&gt;&lt;BR /&gt;The xdev option will causes find to avoid crossing any file system mount points.&lt;BR /&gt;&lt;BR /&gt;Fr??d??ric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jul 2002 05:42:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-l-with-awk-grep/m-p/2757630#M944770</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2002-07-04T05:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: ls -l with AWK/grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-l-with-awk-grep/m-p/2757631#M944771</link>
      <description>If you really want to just go down 1 level only, a script like the following might help.&lt;BR /&gt;for i in `ls`&lt;BR /&gt;do&lt;BR /&gt;if [ -d $i ]; then&lt;BR /&gt;  ls -l $i | awk '{if ( $3 ~ /owner/ ) {print}}'&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;You can substitute the `ls` for a list of directories if you wish.  The script as above will list all files owned by owner.  If you used $4, it will list by group</description>
      <pubDate>Thu, 04 Jul 2002 06:19:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-l-with-awk-grep/m-p/2757631#M944771</guid>
      <dc:creator>Jonathan Baker</dc:creator>
      <dc:date>2002-07-04T06:19:04Z</dc:date>
    </item>
  </channel>
</rss>

