<?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: Simple 'find' command question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288898#M181737</link>
    <description>Hey Darrell,&lt;BR /&gt;Based on your example you used in your question, Iminus was closest to your answer.&lt;BR /&gt;&lt;BR /&gt;If you are looking for any user with ftp in the name (i.e. tftpuser) you would need to enclose the ftp in quotes with an asterisk before and after ...&lt;BR /&gt;# find /home -user "*ftp*"&lt;BR /&gt;&lt;BR /&gt;If you are looking for a user with &lt;SOMETHING&gt;ftp in the name then you don't need quotes, you would use:&lt;BR /&gt;# find /home -user *ftp&lt;BR /&gt;&lt;BR /&gt;Same for the reverse ... ftp&lt;SOMETHING&gt;, you would use:&lt;BR /&gt;# find /home -user ftp*&lt;BR /&gt;&lt;BR /&gt;Your example shows two asterisks, so you would use the first example I show above.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;/SOMETHING&gt;&lt;/SOMETHING&gt;</description>
    <pubDate>Thu, 27 May 2004 20:13:18 GMT</pubDate>
    <dc:creator>Dani Seely</dc:creator>
    <dc:date>2004-05-27T20:13:18Z</dc:date>
    <item>
      <title>Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288887#M181726</link>
      <description>Hello,&lt;BR /&gt;     Is there a way of issuing the 'find' command to poll for â  file ownerâ  ? I have tried the below command with no luck&lt;BR /&gt;&lt;BR /&gt;# find /home -user *ftp*&lt;BR /&gt;find: missing conjun</description>
      <pubDate>Thu, 27 May 2004 10:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288887#M181726</guid>
      <dc:creator>Darrell Tyler_1</dc:creator>
      <dc:date>2004-05-27T10:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288888#M181727</link>
      <description>I think it has to be &lt;BR /&gt;find /home -user ftp&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 27 May 2004 10:11:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288888#M181727</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-05-27T10:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288889#M181728</link>
      <description>You can't use the '*' around the user name.&lt;BR /&gt; &lt;BR /&gt;It would need to be "find /home -user ftp".</description>
      <pubDate>Thu, 27 May 2004 10:12:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288889#M181728</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-05-27T10:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288890#M181729</link>
      <description>you should not have the * around the username.  The shell will interpret the * as a wildcard before executing the find command. so what you want is:&lt;BR /&gt;&lt;BR /&gt;find /home -user ftp -type f -exec ls -l {} \;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 May 2004 10:13:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288890#M181729</guid>
      <dc:creator>TC ITEMS Unix Admin</dc:creator>
      <dc:date>2004-05-27T10:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288891#M181730</link>
      <description>With -user option of commands you can give only +/-&lt;NUMERIC&gt; i.e.&lt;BR /&gt;&lt;BR /&gt;find /home -user +101&lt;BR /&gt;find /home -user -101&lt;BR /&gt;find /home -user 101&lt;BR /&gt;&lt;BR /&gt;find doesn't allow regular expressions for option to -user.&lt;BR /&gt;Anshu&lt;BR /&gt;&lt;BR /&gt;&lt;/NUMERIC&gt;</description>
      <pubDate>Thu, 27 May 2004 10:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288891#M181730</guid>
      <dc:creator>Anupam Anshu_1</dc:creator>
      <dc:date>2004-05-27T10:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288892#M181731</link>
      <description>Yes - can not have *'s&lt;BR /&gt;&lt;BR /&gt;-user uname              True if the file belongs to the user uname.&lt;BR /&gt;                               If uname is numeric and does not appear as a&lt;BR /&gt;                               login name in the /etc/passwd file, it is&lt;BR /&gt;                               taken as a user ID.  The uname operand can be&lt;BR /&gt;                               preceded by a + or - to modify the comparison&lt;BR /&gt;                               of the primaries. If the argument n&lt;BR /&gt;                               represents a decimal integer; +n means more&lt;BR /&gt;                               than n, -n means less than n, and n means&lt;BR /&gt;                               exactly n.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find /home -user ftp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Find only user with uis 21100&lt;BR /&gt;or find /home -user 21100&lt;BR /&gt;&lt;BR /&gt;Find all users greater then uid 21099&lt;BR /&gt;or find /home -user +21099 &lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 27 May 2004 10:27:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288892#M181731</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-05-27T10:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288893#M181732</link>
      <description>Anshu,&lt;BR /&gt;&lt;BR /&gt;That is not right,&lt;BR /&gt;&lt;BR /&gt;# cd /home&lt;BR /&gt;# find . -user gorj -type f -exec ll {} \;&lt;BR /&gt;-rwxr-xr-x   1 gorj       users           65 Apr 20 13:03 .history&lt;BR /&gt;-rwxr-x---   1 gorj       users          341 Jun 13  2000 .login&lt;BR /&gt;-rw-------   1 gorj       users        19124 Mar 25 10:51 .lsof&lt;BR /&gt;-rwxr-x---   1 gorj       users         1768 May 17 09:46 .profile&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 27 May 2004 10:30:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288893#M181732</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-05-27T10:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288894#M181733</link>
      <description>if what you are doing is to find files owned by users who has the word ftp as a part of their username, you can do this&lt;BR /&gt;&lt;BR /&gt;for username in `cat /etc/passwd | cut -d: -f1 | grep ftp`&lt;BR /&gt;do&lt;BR /&gt;find /home -user $username&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
      <pubDate>Thu, 27 May 2004 10:32:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288894#M181733</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-05-27T10:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288895#M181734</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try the following lines:&lt;BR /&gt;&lt;BR /&gt;USERS=`cat /etc/passwd|awk -F":" '{ print $1 }'|grep ftp`&lt;BR /&gt;for USER in $USERS&lt;BR /&gt;do&lt;BR /&gt;find /home -user $USER&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you need more information about found files replace previously "find" sintax by this:&lt;BR /&gt;find /home -user $USER -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;BR.</description>
      <pubDate>Thu, 27 May 2004 10:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288895#M181734</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2004-05-27T10:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288896#M181735</link>
      <description>Hello again,&lt;BR /&gt;I want to thank you all for the information and perspective you have afforded me. I think of all, Mel Burslan is the closest to what Iâ  m looking for - files that have ftp as a part of their owner</description>
      <pubDate>Thu, 27 May 2004 11:12:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288896#M181735</guid>
      <dc:creator>Darrell Tyler_1</dc:creator>
      <dc:date>2004-05-27T11:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288897#M181736</link>
      <description>Try find /home -user "&lt;USER_NAME&gt;"&lt;BR /&gt;&lt;BR /&gt;you can specify wild card * for searching in the quotes.&lt;/USER_NAME&gt;</description>
      <pubDate>Thu, 27 May 2004 17:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288897#M181736</guid>
      <dc:creator>iminus</dc:creator>
      <dc:date>2004-05-27T17:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288898#M181737</link>
      <description>Hey Darrell,&lt;BR /&gt;Based on your example you used in your question, Iminus was closest to your answer.&lt;BR /&gt;&lt;BR /&gt;If you are looking for any user with ftp in the name (i.e. tftpuser) you would need to enclose the ftp in quotes with an asterisk before and after ...&lt;BR /&gt;# find /home -user "*ftp*"&lt;BR /&gt;&lt;BR /&gt;If you are looking for a user with &lt;SOMETHING&gt;ftp in the name then you don't need quotes, you would use:&lt;BR /&gt;# find /home -user *ftp&lt;BR /&gt;&lt;BR /&gt;Same for the reverse ... ftp&lt;SOMETHING&gt;, you would use:&lt;BR /&gt;# find /home -user ftp*&lt;BR /&gt;&lt;BR /&gt;Your example shows two asterisks, so you would use the first example I show above.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;/SOMETHING&gt;&lt;/SOMETHING&gt;</description>
      <pubDate>Thu, 27 May 2004 20:13:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288898#M181737</guid>
      <dc:creator>Dani Seely</dc:creator>
      <dc:date>2004-05-27T20:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Simple 'find' command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288899#M181738</link>
      <description>Thank you once again!</description>
      <pubDate>Fri, 28 May 2004 12:05:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-find-command-question/m-p/3288899#M181738</guid>
      <dc:creator>Darrell Tyler_1</dc:creator>
      <dc:date>2004-05-28T12:05:36Z</dc:date>
    </item>
  </channel>
</rss>

