<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081749#M309147</link>
    <description>Pete's suggestion is what I would use, except you appear to have more than one file dated 31 Aug. Your question implies that you only want to delete one file, so I would use rm -i so you will be asked to confirm deletion.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
    <pubDate>Fri, 05 Oct 2007 06:37:09 GMT</pubDate>
    <dc:creator>MarkSyder</dc:creator>
    <dc:date>2007-10-05T06:37:09Z</dc:date>
    <item>
      <title>delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081746#M309144</link>
      <description>can you help me in a command  to delete the file of Aug 31. &lt;BR /&gt;-rw-r--r--   1 porabat  prod        1004 Aug 31 07:40 IFCHAPSIN1070831072920310807074046.dat.Z&lt;BR /&gt;-rw-r--r--   1 porabat  prod        1695 Aug 31 07:41 IFCHAPSIN1070831070023310807074105.dat.Z&lt;BR /&gt;-rw-r--r--   1 porabat  prod        5095 Aug 31 07:41 IFCHAPSIN1070831062919310807074118.dat.Z&lt;BR /&gt;-rw-r--r--   1 porabat  prod         109 Aug 31 07:41 CHAPSIn_Error31AUG2007074117.csv.Z&lt;BR /&gt;-rw-r--r--   1 porabat  prod         109 Aug 31 07:41 CHAPSIn_Error31AUG2007074103.csv.Z&lt;BR /&gt;-rw-r--r--   1 porabat  prod         109 Aug 31 07:41 CHAPSIn_Error31AUG2007074134.csv.Z&lt;BR /&gt;-rw-r--r--   1 porabat  prod        1084 Aug 31 08:11 IFCHAPSIN1070831080002310807081111.dat.Z&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Oct 2007 05:53:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081746#M309144</guid>
      <dc:creator>Indrajit Bhagat</dc:creator>
      <dc:date>2007-10-05T05:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081747#M309145</link>
      <description>for FILE in `ll |grep "Aug31" |awk '{ print $9 }'`&lt;BR /&gt;do&lt;BR /&gt; rm $FILE&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;You might want to test by replacing "rm" with "ll" first.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 05 Oct 2007 06:15:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081747#M309145</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-10-05T06:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081748#M309146</link>
      <description>ls -l | while read a b c d e f g h i&lt;BR /&gt;do&lt;BR /&gt;  if [ ! -f $i ]&lt;BR /&gt;  then&lt;BR /&gt;    continue&lt;BR /&gt;  fi&lt;BR /&gt;  if [ "$f" != "Aug" -o "$g" != "31" ]&lt;BR /&gt;  then&lt;BR /&gt;    continue&lt;BR /&gt;  fi&lt;BR /&gt;  echo "# $(ls -l $i)"&lt;BR /&gt;  echo "rm $i"&lt;BR /&gt;done &amp;gt; myfiletoexecute&lt;BR /&gt;&lt;BR /&gt;check the myfiletoexecute, if it looks ok&lt;BR /&gt;sh myfiletoexecute&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Oct 2007 06:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081748#M309146</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2007-10-05T06:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081749#M309147</link>
      <description>Pete's suggestion is what I would use, except you appear to have more than one file dated 31 Aug. Your question implies that you only want to delete one file, so I would use rm -i so you will be asked to confirm deletion.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Fri, 05 Oct 2007 06:37:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081749#M309147</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2007-10-05T06:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081750#M309148</link>
      <description>Mark makes a good point concerning how many files are to be deleted.  My answer assumes that all files dated Aug 31 are to be deleted.  If that is not what was intended, then the question needs to be re-stated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 05 Oct 2007 10:18:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081750#M309148</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-10-05T10:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081751#M309149</link>
      <description>rm $(ls -l |awk '/ Aug / {print $9}')&lt;BR /&gt;use rm -i if you want to confirm each signle file.&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Mon, 08 Oct 2007 04:35:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete/m-p/4081751#M309149</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-10-08T04:35:35Z</dc:date>
    </item>
  </channel>
</rss>

