<?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: delete a specific user file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560952#M226463</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try following command&lt;BR /&gt;#find / -user abc -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;replace abc with the username. Also replace / with the absolute path if you want to delete only from certain directory..&lt;BR /&gt;/ will delete all files owned by abc on the system.&lt;BR /&gt;&lt;BR /&gt;Cheers !!!&lt;BR /&gt;&lt;BR /&gt;eknath</description>
    <pubDate>Thu, 09 Jun 2005 04:24:15 GMT</pubDate>
    <dc:creator>Eknath</dc:creator>
    <dc:date>2005-06-09T04:24:15Z</dc:date>
    <item>
      <title>delete a specific user file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560949#M226460</link>
      <description>If I want to delete all the files that belongs to a specify user ( eg. userA) ,  in the below case , i want to delete the file ed.log , could suggest what can I do ?thx&lt;BR /&gt;&lt;BR /&gt;ll /tmp&lt;BR /&gt;&lt;BR /&gt;-rw-rw-rw-    1 userB edp          1830 Jun  9 16:25 abc.log&lt;BR /&gt;-rw-rw-rw-    1 userA edp          1864 Jun  9 16:25 ed.log&lt;BR /&gt;-rw-rw-rw-    1 edp1  sys         2546 Jun  9 16:04 gou.log&lt;BR /&gt;-rw-r--r--    1 root     root        27004 Jun  9 16:00 12203.1&lt;BR /&gt;-rw-r--r--    1 root     root        14683 Jun  9 16:00 12203.2</description>
      <pubDate>Thu, 09 Jun 2005 04:05:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560949#M226460</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2005-06-09T04:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: delete a specific user file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560950#M226461</link>
      <description>Hi Peter,&lt;BR /&gt;&lt;BR /&gt;use find.&lt;BR /&gt;&lt;BR /&gt;#find &lt;DIR&gt; -user &lt;USERNAME&gt; -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;where &lt;DIR&gt; is the directory of the files and&lt;BR /&gt;&lt;USERNAME&gt; is the owner of the files that you want to delete.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Paul&lt;/USERNAME&gt;&lt;/DIR&gt;&lt;/USERNAME&gt;&lt;/DIR&gt;</description>
      <pubDate>Thu, 09 Jun 2005 04:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560950#M226461</guid>
      <dc:creator>Paul_481</dc:creator>
      <dc:date>2005-06-09T04:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: delete a specific user file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560951#M226462</link>
      <description>Whith a simple scritp:&lt;BR /&gt;&lt;BR /&gt; ll | grep -i mad | awk '{ print $NF }'&lt;BR /&gt;&lt;BR /&gt;Gives you all the files which a user owns.&lt;BR /&gt;&lt;BR /&gt;Dartanan:/tmp&amp;gt; ll | grep -i mad | awk '{ print $NF }' | while read line&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; rm $line&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;With this simple scritp you can delete all of them</description>
      <pubDate>Thu, 09 Jun 2005 04:22:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560951#M226462</guid>
      <dc:creator>jpcast_real</dc:creator>
      <dc:date>2005-06-09T04:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: delete a specific user file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560952#M226463</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try following command&lt;BR /&gt;#find / -user abc -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;replace abc with the username. Also replace / with the absolute path if you want to delete only from certain directory..&lt;BR /&gt;/ will delete all files owned by abc on the system.&lt;BR /&gt;&lt;BR /&gt;Cheers !!!&lt;BR /&gt;&lt;BR /&gt;eknath</description>
      <pubDate>Thu, 09 Jun 2005 04:24:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560952#M226463</guid>
      <dc:creator>Eknath</dc:creator>
      <dc:date>2005-06-09T04:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: delete a specific user file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560953#M226464</link>
      <description>You can all files owned by specic user with find -u option as,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find &lt;PATH&gt; -u &lt;USERNAME&gt; -type f -exec rm -f {} \;&lt;BR /&gt;&lt;BR /&gt;To delete userA file under /tmp structure then,&lt;BR /&gt;&lt;BR /&gt;find /tmp -u userA -type f -exec rm -f {} \;&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;find /tmp -u userA -type f | xargs rm -f&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/USERNAME&gt;&lt;/PATH&gt;</description>
      <pubDate>Thu, 09 Jun 2005 04:30:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560953#M226464</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-09T04:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: delete a specific user file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560954#M226465</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ll |grep ^- | awk '{ if ( $3 == "username" ) {print $9} }'|xargs rm&lt;BR /&gt;&lt;BR /&gt;for delete username' s ordinary file in the currently directory.&lt;BR /&gt;&lt;BR /&gt;Enrico</description>
      <pubDate>Thu, 09 Jun 2005 04:55:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560954#M226465</guid>
      <dc:creator>Enrico P.</dc:creator>
      <dc:date>2005-06-09T04:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: delete a specific user file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560955#M226466</link>
      <description>Peter,&lt;BR /&gt;While i concur with the suggestions put forth in the previous posts, i would like to urge you to make doubly sure on the "User" and "Directory" while following the suggestions :)&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Mobeen&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jun 2005 06:20:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-specific-user-file/m-p/3560955#M226466</guid>
      <dc:creator>Mobeen_1</dc:creator>
      <dc:date>2005-06-09T06:20:26Z</dc:date>
    </item>
  </channel>
</rss>

