<?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 Help script HP-UX in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-hp-ux/m-p/4231399#M328701</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;output command:&lt;BR /&gt;&lt;BR /&gt;ls -tr /var/opt/ignite/recovery/archives/PJHPXC01 | grep 20&lt;BR /&gt;2008-07-10,12:11&lt;BR /&gt;2008-07-10,13:00&lt;BR /&gt;2008-07-10,14:00&lt;BR /&gt;&lt;BR /&gt;i would like to send the output of this command and after i choose which file will be delete.&lt;BR /&gt;&lt;BR /&gt;The script is attached.&lt;BR /&gt;&lt;BR /&gt;wait&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 10 Jul 2008 15:22:55 GMT</pubDate>
    <dc:creator>Fernando Jose P de Souz</dc:creator>
    <dc:date>2008-07-10T15:22:55Z</dc:date>
    <item>
      <title>Help script HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-hp-ux/m-p/4231399#M328701</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;output command:&lt;BR /&gt;&lt;BR /&gt;ls -tr /var/opt/ignite/recovery/archives/PJHPXC01 | grep 20&lt;BR /&gt;2008-07-10,12:11&lt;BR /&gt;2008-07-10,13:00&lt;BR /&gt;2008-07-10,14:00&lt;BR /&gt;&lt;BR /&gt;i would like to send the output of this command and after i choose which file will be delete.&lt;BR /&gt;&lt;BR /&gt;The script is attached.&lt;BR /&gt;&lt;BR /&gt;wait&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jul 2008 15:22:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-hp-ux/m-p/4231399#M328701</guid>
      <dc:creator>Fernando Jose P de Souz</dc:creator>
      <dc:date>2008-07-10T15:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help script HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-hp-ux/m-p/4231400#M328702</link>
      <description>Ok,&lt;BR /&gt;&lt;BR /&gt;you have a script for your task.&lt;BR /&gt;- Do you want general comments?&lt;BR /&gt;One of me:&lt;BR /&gt;NUM_LINES1=`ls -tr $CAM1 | grep 20 | wc -w`&lt;BR /&gt;Change to&lt;BR /&gt;NUM_LINES1=$(ls -tr $CAM1/*20* 2&amp;gt;/dev/null | wc -w)&lt;BR /&gt;or&lt;BR /&gt;NUM_LINES1=$(ls -tr $CAM1 | fgrep -c 20)&lt;BR /&gt;or ...&lt;BR /&gt;&lt;BR /&gt;- Does it not work generally?&lt;BR /&gt;- Does it not work under certain conditions?&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Thu, 10 Jul 2008 15:41:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-hp-ux/m-p/4231400#M328702</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-07-10T15:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help script HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-hp-ux/m-p/4231401#M328703</link>
      <description>&lt;!--!*#--&gt;Over and over in your script you are doing that ls -tr, grep and wc.  You can make this much easier by using select.  In my case:&lt;BR /&gt;select file in $( ls -tr | grep 303 ) ; do&lt;BR /&gt;   echo $file&lt;BR /&gt;   break&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Here is what I get, I then enter that "5".&lt;BR /&gt;1) 303471.log&lt;BR /&gt;2) 303595.i&lt;BR /&gt;3) 303595.incl&lt;BR /&gt;4) 303595.i.incl&lt;BR /&gt;5) 303750.i&lt;BR /&gt;6) 303879.txt&lt;BR /&gt;#? 5&lt;BR /&gt;303750.i</description>
      <pubDate>Fri, 11 Jul 2008 06:09:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-hp-ux/m-p/4231401#M328703</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-11T06:09:48Z</dc:date>
    </item>
  </channel>
</rss>

