<?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: Listing files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/listing-files/m-p/3430192#M859575</link>
    <description>Hi Fernando&lt;BR /&gt;&lt;BR /&gt;The first thing i would do before &lt;BR /&gt;$ find . -type f -name 'Device_time_??????.txt' -exec rm {} \;&lt;BR /&gt; that is to&lt;BR /&gt;$ find . -type f -name 'Device_time_??????.txt' -exec echo {} \;&lt;BR /&gt;&lt;BR /&gt;Just as sanity sake to see what i will be impacting.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Gerhard</description>
    <pubDate>Fri, 26 Nov 2004 00:18:44 GMT</pubDate>
    <dc:creator>Gerhard Roets</dc:creator>
    <dc:date>2004-11-26T00:18:44Z</dc:date>
    <item>
      <title>Listing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/listing-files/m-p/3430188#M859571</link>
      <description>I have the files with the following pattern:&lt;BR /&gt;&lt;BR /&gt;(1.) Device_time_batch.txt&lt;BR /&gt;(2.) Device_time_&lt;PREFIX&gt;batch.txt&lt;BR /&gt;&lt;BR /&gt;where: batch = 4 digit number&lt;BR /&gt;       prefix = GS or anything&lt;BR /&gt;&lt;BR /&gt;I need to list all devices only with batch and exclude / delete batch with prefix.&lt;BR /&gt;&lt;BR /&gt;Maximum points to all correct replies!&lt;BR /&gt;&lt;/PREFIX&gt;</description>
      <pubDate>Thu, 25 Nov 2004 02:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/listing-files/m-p/3430188#M859571</guid>
      <dc:creator>Pando</dc:creator>
      <dc:date>2004-11-25T02:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/listing-files/m-p/3430189#M859572</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;$ ls -l Device_time_????.txt&lt;BR /&gt;&lt;BR /&gt;Regards, MB.</description>
      <pubDate>Thu, 25 Nov 2004 03:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/listing-files/m-p/3430189#M859572</guid>
      <dc:creator>Marcel Boogert_1</dc:creator>
      <dc:date>2004-11-25T03:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/listing-files/m-p/3430190#M859573</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;to remove the files with prefix use something like:&lt;BR /&gt;&lt;BR /&gt;$ find . -type f -name 'Device_time_??????.txt' -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Regards, MB.</description>
      <pubDate>Thu, 25 Nov 2004 03:32:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/listing-files/m-p/3430190#M859573</guid>
      <dc:creator>Marcel Boogert_1</dc:creator>
      <dc:date>2004-11-25T03:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/listing-files/m-p/3430191#M859574</link>
      <description>Hi Fernando,&lt;BR /&gt;&lt;BR /&gt;Try simple find before you add 'rm' to it. Good thing is that you have "_" as the seperator so you may not have to worry too much.&lt;BR /&gt;&lt;BR /&gt;find /directory -name "Device_time_[0-9][0-9][0-9][0-9].txt"&lt;BR /&gt;&lt;BR /&gt;Assuming that your time doesn't include a "_" in it.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 25 Nov 2004 04:26:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/listing-files/m-p/3430191#M859574</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-25T04:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/listing-files/m-p/3430192#M859575</link>
      <description>Hi Fernando&lt;BR /&gt;&lt;BR /&gt;The first thing i would do before &lt;BR /&gt;$ find . -type f -name 'Device_time_??????.txt' -exec rm {} \;&lt;BR /&gt; that is to&lt;BR /&gt;$ find . -type f -name 'Device_time_??????.txt' -exec echo {} \;&lt;BR /&gt;&lt;BR /&gt;Just as sanity sake to see what i will be impacting.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Gerhard</description>
      <pubDate>Fri, 26 Nov 2004 00:18:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/listing-files/m-p/3430192#M859575</guid>
      <dc:creator>Gerhard Roets</dc:creator>
      <dc:date>2004-11-26T00:18:44Z</dc:date>
    </item>
  </channel>
</rss>

