<?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 Shell Programming in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/3685028#M246038</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can someone tell me the difference between metacharacters, pattern matching, wildcards, filename completion, and regular expressions...</description>
    <pubDate>Mon, 05 Dec 2005 15:49:41 GMT</pubDate>
    <dc:creator>Programmer</dc:creator>
    <dc:date>2005-12-05T15:49:41Z</dc:date>
    <item>
      <title>Shell Programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/3685028#M246038</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can someone tell me the difference between metacharacters, pattern matching, wildcards, filename completion, and regular expressions...</description>
      <pubDate>Mon, 05 Dec 2005 15:49:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/3685028#M246038</guid>
      <dc:creator>Programmer</dc:creator>
      <dc:date>2005-12-05T15:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/3685029#M246039</link>
      <description>Best place to start looking is the man page for regular expressions...&lt;BR /&gt;&lt;BR /&gt;# man 5 regexp&lt;BR /&gt;&lt;BR /&gt;best of luck!</description>
      <pubDate>Mon, 05 Dec 2005 15:53:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/3685029#M246039</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-12-05T15:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/3685030#M246040</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;"Pattern-matching" is the science and art of matching, extracting and/or substituting text.  Just as you would imagine, you are looking for a particuar pattern of characters, for instance, two digits (0-9) followed by a blank character.&lt;BR /&gt;&lt;BR /&gt;"Regular expessions" are the basis for pattern-matching.&lt;BR /&gt;&lt;BR /&gt;Many, many utilities and languages implement regular expresssion engines, Perl, 'awk', 'sed' and 'grep' begin among the most notable UNIX ones.&lt;BR /&gt;&lt;BR /&gt;Simply speaking, metacharacters are characters that drive the regular expression engine.  For instance, the caret (^) is a metacharacter that specifies the beginning of a line.  A dot (".") represents any character.  A plus ("+") denotes one or more repetitions of the preceeding character.  The actions that  metacharcters produce in regular expresssions can be turned of by escaping them with a backslash "\" character in front of them.&lt;BR /&gt;&lt;BR /&gt;"Wildcard" is a term generally used with the shell to refer to certain metacharacters that have special meaning to the shell.  They do not necessary have the same meaning as in a regular expression!&lt;BR /&gt;&lt;BR /&gt;"Filename completion" is a shell feature whereby by typing part of a file's name and then hitting the escape key, completes a file name on the command line if what has been typed to that point can be resolved into a unique name.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 05 Dec 2005 16:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/3685030#M246040</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-12-05T16:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/3685031#M246041</link>
      <description>Shalom Programmer,&lt;BR /&gt;&lt;BR /&gt;filename completion is when you hit a certain key sequence, while typing a partial filename. If there are no other possibilities then the filename completes. If there are multiple possibilities it will complete up to the point they have in common&lt;BR /&gt;&lt;BR /&gt;in a set -o vi/POSIX environment the squence is escape escape.&lt;BR /&gt;&lt;BR /&gt;Under Linux its tab tab. A third tab under Linux will list filenames.&lt;BR /&gt;&lt;BR /&gt;This is a form of pattern matching.&lt;BR /&gt;&lt;BR /&gt;A wildcard is thus.&lt;BR /&gt;&lt;BR /&gt;ls he*.txt&lt;BR /&gt;&lt;BR /&gt;ls all files starting with he and having any other characters and a .txt on the end.&lt;BR /&gt;&lt;BR /&gt;The wildcard is the asterisk. A question mark can serve as well.&lt;BR /&gt;&lt;BR /&gt;Lets say we have three files.&lt;BR /&gt;&lt;BR /&gt;file01.txt&lt;BR /&gt;file02.txt&lt;BR /&gt;file03.txt&lt;BR /&gt;&lt;BR /&gt;ls file??.txt&lt;BR /&gt;&lt;BR /&gt;Will list all files with the name file wild card wildcard .txt&lt;BR /&gt;&lt;BR /&gt;Hopefully these examples will help because my fingers are tired.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 05 Dec 2005 16:46:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/3685031#M246041</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-12-05T16:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/3685032#M246042</link>
      <description>Thanks Steven...</description>
      <pubDate>Mon, 05 Dec 2005 16:53:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming/m-p/3685032#M246042</guid>
      <dc:creator>Programmer</dc:creator>
      <dc:date>2005-12-05T16:53:34Z</dc:date>
    </item>
  </channel>
</rss>

