<?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: how grep rm command for sh_history of multiple user? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118900#M683228</link>
    <description>&amp;gt;I tried grep with for loop but give all junk character.&lt;BR /&gt;&lt;BR /&gt;.sh_history has binary characters.  In some cases, grepping them locks up my hpterm.&lt;BR /&gt;You can pipe the results to vis(1) to prevent this.  Taking Pete's example:&lt;BR /&gt;grep -n "rm" /home/*/.sh_history | vis</description>
    <pubDate>Fri, 11 Jul 2008 23:49:55 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-07-11T23:49:55Z</dc:date>
    <item>
      <title>how grep rm command for sh_history of multiple user?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118896#M683224</link>
      <description>On one of our hp server we have 200 users.&lt;BR /&gt;I want to find who ran rm command from the repective home directories sh_history file of the users.&lt;BR /&gt;I tried grep with for loop but give all junk character.&lt;BR /&gt;Kindly assist at the earliest.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jul 2008 10:29:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118896#M683224</guid>
      <dc:creator>kpatel786</dc:creator>
      <dc:date>2008-07-11T10:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: how grep rm command for sh_history of multiple user?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118897#M683225</link>
      <description>hey&lt;BR /&gt;&lt;BR /&gt;an easy script would be this:&lt;BR /&gt;&lt;BR /&gt;cd /home&lt;BR /&gt;while user in $(ls) ; do&lt;BR /&gt;  echo $user&lt;BR /&gt;  grep rm $user/.sh_history&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;or maybe you can poste you script...&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Fri, 11 Jul 2008 10:34:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118897#M683225</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2008-07-11T10:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: how grep rm command for sh_history of multiple user?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118898#M683226</link>
      <description>grep -l "rm" /home/*/.sh_history&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 11 Jul 2008 10:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118898#M683226</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-07-11T10:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: how grep rm command for sh_history of multiple user?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118899#M683227</link>
      <description>Thank you guys for you assistance</description>
      <pubDate>Fri, 11 Jul 2008 11:14:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118899#M683227</guid>
      <dc:creator>kpatel786</dc:creator>
      <dc:date>2008-07-11T11:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: how grep rm command for sh_history of multiple user?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118900#M683228</link>
      <description>&amp;gt;I tried grep with for loop but give all junk character.&lt;BR /&gt;&lt;BR /&gt;.sh_history has binary characters.  In some cases, grepping them locks up my hpterm.&lt;BR /&gt;You can pipe the results to vis(1) to prevent this.  Taking Pete's example:&lt;BR /&gt;grep -n "rm" /home/*/.sh_history | vis</description>
      <pubDate>Fri, 11 Jul 2008 23:49:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118900#M683228</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-11T23:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: how grep rm command for sh_history of multiple user?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118901#M683229</link>
      <description>thanks.</description>
      <pubDate>Tue, 09 Dec 2008 14:20:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-grep-rm-command-for-sh-history-of-multiple-user/m-p/5118901#M683229</guid>
      <dc:creator>kpatel786</dc:creator>
      <dc:date>2008-12-09T14:20:47Z</dc:date>
    </item>
  </channel>
</rss>

