<?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: linux wildcard in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575680#M18499</link>
    <description>It is actually coming back with the following error message:&lt;BR /&gt;&lt;BR /&gt;ncftpget: server said: Specified object name too long, limit is 10 characters: DEL[0-9]{6,6.&lt;BR /&gt;+ ERRCODE=3&lt;BR /&gt;&lt;BR /&gt;Apologies about this but I have just discovered that the remote server I am trying to grab these files from is a OS/400. Does this help?&lt;BR /&gt;&lt;BR /&gt;D.</description>
    <pubDate>Mon, 04 Jul 2005 10:45:51 GMT</pubDate>
    <dc:creator>Duffs</dc:creator>
    <dc:date>2005-07-04T10:45:51Z</dc:date>
    <item>
      <title>linux wildcard</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575674#M18493</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am attempting to write a script on Linux RH(9) Shrike that will fetch all files in the format `DEL&amp;lt;6_unique_digits&amp;gt;K` from a remote server.&lt;BR /&gt;&lt;BR /&gt;My script works fine apart from fetching the actual filetypes that I need. For example I have tried all of the following combinations without any luck.....&lt;BR /&gt;FILESPEC=DEL*K&lt;BR /&gt;FILESPEC=^DEL\d\d\d\d\d\d\K&lt;BR /&gt;FILESPEC=`[^DEL]^[K]&lt;BR /&gt;&lt;BR /&gt;........as you can I see I am running out of ideas for this, can anybody help?&lt;BR /&gt;&lt;BR /&gt;Dermot</description>
      <pubDate>Mon, 04 Jul 2005 04:46:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575674#M18493</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-07-04T04:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: linux wildcard</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575675#M18494</link>
      <description>In terms of shell globbing, you've got a few choices:&lt;BR /&gt;&lt;BR /&gt;DEL*K&lt;BR /&gt;DEL??????K&lt;BR /&gt;DEL[0-9][0-9][0-9][0-9][0-9][0-9]K&lt;BR /&gt;&lt;BR /&gt;Obviously, the first will not restrict the interviening characters to 6.&lt;BR /&gt;&lt;BR /&gt;The second will restrict it to 6 middle characters, but not what those characters are.&lt;BR /&gt;&lt;BR /&gt;The third restricts the middle 6 characters to digits.&lt;BR /&gt;&lt;BR /&gt;Now, you have to be careful where you use these however, as if you don't quote at the right time, they'll be expanded then, and not later when you want it to.</description>
      <pubDate>Mon, 04 Jul 2005 05:21:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575675#M18494</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-04T05:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: linux wildcard</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575676#M18495</link>
      <description>This is how I'd do it with perl:&lt;BR /&gt;opendir DIR, "/root/perl";&lt;BR /&gt;for $_(readdir DIR)&lt;BR /&gt;{&lt;BR /&gt;        print $_."\n" if /^DEL\d{6}K$/;&lt;BR /&gt;}&lt;BR /&gt;Hope it helps.</description>
      <pubDate>Mon, 04 Jul 2005 05:40:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575676#M18495</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2005-07-04T05:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: linux wildcard</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575677#M18496</link>
      <description>This is how I'd do it with perl:&lt;BR /&gt;opendir DIR, ".";&lt;BR /&gt;for $_(readdir DIR)&lt;BR /&gt;{&lt;BR /&gt;        print $_."\n" if /^DEL\d{6}K$/;&lt;BR /&gt;}&lt;BR /&gt;Hope it helps.</description>
      <pubDate>Mon, 04 Jul 2005 05:40:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575677#M18496</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2005-07-04T05:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: linux wildcard</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575678#M18497</link>
      <description>Unfortunately this Perl solution does not work with Linux shell scripting.&lt;BR /&gt;D.</description>
      <pubDate>Mon, 04 Jul 2005 06:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575678#M18497</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-07-04T06:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: linux wildcard</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575679#M18498</link>
      <description>&lt;BR /&gt;you can try this &lt;BR /&gt;&lt;BR /&gt;FILESPEC=DEL[0,9]{1,6}K &lt;BR /&gt;&lt;BR /&gt;which will match the files containing the string "DEL&amp;lt;1 to 6 digits&amp;gt;K" anywhere in the file.&lt;BR /&gt;&lt;BR /&gt;As you can see it with match both DEL1K and DEL123456K. so if you want it to be specific about the number of digits, use this:&lt;BR /&gt;&lt;BR /&gt;FILESPEC=DEL[0-9]{6,6}K&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
      <pubDate>Mon, 04 Jul 2005 10:25:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575679#M18498</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-07-04T10:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: linux wildcard</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575680#M18499</link>
      <description>It is actually coming back with the following error message:&lt;BR /&gt;&lt;BR /&gt;ncftpget: server said: Specified object name too long, limit is 10 characters: DEL[0-9]{6,6.&lt;BR /&gt;+ ERRCODE=3&lt;BR /&gt;&lt;BR /&gt;Apologies about this but I have just discovered that the remote server I am trying to grab these files from is a OS/400. Does this help?&lt;BR /&gt;&lt;BR /&gt;D.</description>
      <pubDate>Mon, 04 Jul 2005 10:45:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575680#M18499</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-07-04T10:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: linux wildcard</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575681#M18500</link>
      <description>&lt;BR /&gt;oops, are you using this on OS 400? I am sorry, this pattern matching will work on newer versio n of bash shell in linux and I really doubt whether the shell available in OS 400 does really support pattern matching at all.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jul 2005 10:59:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575681#M18500</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-07-04T10:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: linux wildcard</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575682#M18501</link>
      <description>Umm, atom repitition like that ([0-9]{1,6}) is a RegularExpression, not a path-globbing format.&lt;BR /&gt;&lt;BR /&gt;{} braces in most bourne-based shells (including ksh &amp;amp; bash) is treated as multiple-parts, i.e. file{1,2} = file1 file1.&lt;BR /&gt;&lt;BR /&gt;Not even bash 3.00.16 (part of FC4) has reguler-expression globbing.</description>
      <pubDate>Mon, 04 Jul 2005 18:23:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-wildcard/m-p/3575682#M18501</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-04T18:23:10Z</dc:date>
    </item>
  </channel>
</rss>

