<?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: file name pattern matching in a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783944#M77943</link>
    <description>&lt;BR /&gt;Yogeeraj,&lt;BR /&gt;&lt;BR /&gt;# ls file12[34-39]*&lt;BR /&gt;file12[34-39]* not found&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;the [34-39] doesn't work because the "range" doesn't work that way. The "range" is a single range. IE a-z works, but not aa-ku.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Mon, 12 Aug 2002 11:34:53 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-08-12T11:34:53Z</dc:date>
    <item>
      <title>file name pattern matching in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783940#M77939</link>
      <description>Hi,&lt;BR /&gt;I have a lot of file names with ascending numeric patterns in their names.  e.g. file1234, file1235, file1236, etc.&lt;BR /&gt;I am trying to list the files whose names fall within a certain numeric range, e.g. file1234-file1239.&lt;BR /&gt;I've tried everything and am sure i am making a stupid omission somewhere, but can't waste any more time searching the web and reading for an answer.  Can someone please take me out of my misery! &lt;BR /&gt;Thanks.&lt;BR /&gt;Dermot.</description>
      <pubDate>Mon, 12 Aug 2002 10:55:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783940#M77939</guid>
      <dc:creator>Dermot Beirne</dc:creator>
      <dc:date>2002-08-12T10:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: file name pattern matching in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783941#M77940</link>
      <description>&lt;BR /&gt;ls file123[4-9]&lt;BR /&gt;&lt;BR /&gt;# cd /tmp&lt;BR /&gt;# touch file1230 &lt;BR /&gt;# touch file1233&lt;BR /&gt;# touch file1234&lt;BR /&gt;# touch file1235&lt;BR /&gt;# touch file1236&lt;BR /&gt;# touch file1238&lt;BR /&gt;# touch file1237&lt;BR /&gt;# touch file1239&lt;BR /&gt;# ls file123[4-9]&lt;BR /&gt;file1234  file1235  file1236  file1237  file1238  file1239&lt;BR /&gt;# ls file123[5-8]&lt;BR /&gt;file1235  file1236  file1237  file1238&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2002 11:01:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783941#M77940</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-12T11:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: file name pattern matching in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783942#M77941</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;this do it:&lt;BR /&gt;ls -alR file12[34-39]&lt;BR /&gt;&lt;BR /&gt;or if there are more files, you can also do a:&lt;BR /&gt;ls -alR file12[34-39]*&lt;BR /&gt;&lt;BR /&gt;using wild cards * or ?, it becomes easy.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Mon, 12 Aug 2002 11:10:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783942#M77941</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-08-12T11:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: file name pattern matching in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783943#M77942</link>
      <description>check this:&lt;BR /&gt;&lt;BR /&gt; ll file12* | awk '/file1234/,/file1243/ { print}'  &lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2002 11:11:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783943#M77942</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-08-12T11:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: file name pattern matching in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783944#M77943</link>
      <description>&lt;BR /&gt;Yogeeraj,&lt;BR /&gt;&lt;BR /&gt;# ls file12[34-39]*&lt;BR /&gt;file12[34-39]* not found&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;the [34-39] doesn't work because the "range" doesn't work that way. The "range" is a single range. IE a-z works, but not aa-ku.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 12 Aug 2002 11:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783944#M77943</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-12T11:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: file name pattern matching in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783945#M77944</link>
      <description>The method of Carlos works perfect. First posting of Harry D. Brown looks good, but as Harry indeed telles us, the [xx-yy] does not work. Only one charachter-range is available.&lt;BR /&gt;&lt;BR /&gt;Don't you just love awk.. :)&lt;BR /&gt;Ceesjan</description>
      <pubDate>Mon, 12 Aug 2002 11:43:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783945#M77944</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2002-08-12T11:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: file name pattern matching in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783946#M77945</link>
      <description>With these files&lt;BR /&gt;&lt;BR /&gt;# ls file1*&lt;BR /&gt;file1     file1220  file1230  file1234  file1236  file1238  file1244  file1255&lt;BR /&gt;file1211  file1225  file1233  file1235  file1237  file1239  file1245&lt;BR /&gt;&lt;BR /&gt;you can display ranges using this syntax, as in listing files that are&lt;BR /&gt;&lt;BR /&gt;file1224-file1227 &amp;amp; file1234-file1237&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ls file12[2-3][4-7]&lt;BR /&gt;file1225  file1234  file1235  file1236  file1237&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;if you want all files starting at file1224 through file1237, then this syntax works:&lt;BR /&gt;&lt;BR /&gt;# ls file122[4-9] file123[0-7]&lt;BR /&gt;file1225  file1230  file1233  file1234  file1235  file1236  file1237&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2002 12:09:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783946#M77945</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-12T12:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: file name pattern matching in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783947#M77946</link>
      <description>Thanks to all, but especially Carlos.  Your awk statement was spot on.  The problem with the others was that it did not allow for going from file12301 to file12311 easily.  &lt;BR /&gt;&lt;BR /&gt;Many thanks.  &lt;BR /&gt;Dermot</description>
      <pubDate>Mon, 12 Aug 2002 13:38:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-name-pattern-matching-in-a-script/m-p/2783947#M77946</guid>
      <dc:creator>Dermot Beirne</dc:creator>
      <dc:date>2002-08-12T13:38:30Z</dc:date>
    </item>
  </channel>
</rss>

