<?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: a simple shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531154#M841576</link>
    <description>cd /&lt;BR /&gt;find ./abc -type f \( ! -name "33567*" \) -exec mv {} ./xyz \;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
    <pubDate>Mon, 25 Apr 2005 08:08:30 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2005-04-25T08:08:30Z</dc:date>
    <item>
      <title>a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531153#M841575</link>
      <description>i have a directory called /abc, there are many&lt;BR /&gt;files in it, some are named start with 33567,&lt;BR /&gt;now i want only keep the file which name are 33567*, the rest files all move to /xyz.&lt;BR /&gt;&lt;BR /&gt;how to do it?&lt;BR /&gt;thx, high score if reply</description>
      <pubDate>Mon, 25 Apr 2005 08:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531153#M841575</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2005-04-25T08:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531154#M841576</link>
      <description>cd /&lt;BR /&gt;find ./abc -type f \( ! -name "33567*" \) -exec mv {} ./xyz \;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 25 Apr 2005 08:08:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531154#M841576</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-04-25T08:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531155#M841577</link>
      <description>thx! any other ways?&lt;BR /&gt;sry for the 7 points, pls reply i will assgin 10 points to U!</description>
      <pubDate>Mon, 25 Apr 2005 08:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531155#M841577</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2005-04-25T08:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531156#M841578</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;#find /abc -name "33567*" -print |cpio -pdmv /xyz&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Mon, 25 Apr 2005 08:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531156#M841578</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-04-25T08:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531157#M841579</link>
      <description>can it do with awk or for loop?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2005 08:27:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531157#M841579</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2005-04-25T08:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531158#M841580</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# cd /abc&lt;BR /&gt;# mv $(ls | grep -v "^33567*") /xyz&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Mon, 25 Apr 2005 08:27:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531158#M841580</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2005-04-25T08:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531159#M841581</link>
      <description>You might be able to do it with awk, but awk is really not the ideal tool for this.&lt;BR /&gt;&lt;BR /&gt;Yet another way:&lt;BR /&gt;&lt;BR /&gt;cd /abc&lt;BR /&gt;ls -1 | grep -v 33567 &amp;gt; /var/tmp/afile&lt;BR /&gt;&lt;BR /&gt;(verify contents of /var/tmp/afile here to make sure it is only what you require)&lt;BR /&gt;&lt;BR /&gt;for file in $(cat /var/tmp/afile)&lt;BR /&gt;do&lt;BR /&gt;mv /abc/${file} /xyz&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2005 08:34:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531159#M841581</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-04-25T08:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531160#M841582</link>
      <description>good!&lt;BR /&gt;&lt;BR /&gt;the previous replier pls reply, i will assign 3 more ponits to U! (7+3=10)</description>
      <pubDate>Mon, 25 Apr 2005 08:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531160#M841582</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2005-04-25T08:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531161#M841583</link>
      <description>other ways? Sure: You can write a perl script, a shell script or even a program, but that simple one liner is probably the easiest. &lt;BR /&gt;&lt;BR /&gt;The cpio solution given will NOT work:&lt;BR /&gt;o It will move the files 33567* to xyz&lt;BR /&gt;o It does not remove the files copied from abc to xyz&lt;BR /&gt;o it is using an absolute path which will not work, so /xyz would end up having /xyc/tmp/abc (see example:)&lt;BR /&gt;&lt;BR /&gt;[root@vpart1 /tmp]# ls -l abc xyz&lt;BR /&gt;&lt;BR /&gt;abc:&lt;BR /&gt;total 0&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33567_1&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33567_2&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33567_3&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33567_4&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_1&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_2&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_3&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_4&lt;BR /&gt;&lt;BR /&gt;xyz:&lt;BR /&gt;total 0&lt;BR /&gt;[root@vpart1 /tmp]# find /tmp/abc -type f \( ! -name "33567*" \) -print | cpio -pdvm /tmp/xyz                 &lt;BR /&gt;/tmp/xyz/tmp/abc/33568_1&lt;BR /&gt;/tmp/xyz/tmp/abc/33568_2&lt;BR /&gt;/tmp/xyz/tmp/abc/33568_3&lt;BR /&gt;/tmp/xyz/tmp/abc/33568_4&lt;BR /&gt;0 blocks&lt;BR /&gt;&lt;BR /&gt;[root@vpart1 /tmp]# ls -lR abc xyz&lt;BR /&gt;&lt;BR /&gt;abc:&lt;BR /&gt;total 0&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33567_1&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33567_2&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33567_3&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33567_4&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_1&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_2&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_3&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_4&lt;BR /&gt;&lt;BR /&gt;xyz:&lt;BR /&gt;total 0&lt;BR /&gt;drwxrwxrwx   3 root       sys             96 Apr 25 09:40 tmp&lt;BR /&gt;&lt;BR /&gt;xyz/tmp:&lt;BR /&gt;total 0&lt;BR /&gt;drwxrwxrwx   2 root       sys             96 Apr 25 09:40 abc&lt;BR /&gt;&lt;BR /&gt;xyz/tmp/abc:&lt;BR /&gt;total 0&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_1&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_2&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_3&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Apr 25 09:06 33568_4&lt;BR /&gt;[root@vpart1 /tmp]# &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;so stick with the "mv"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 25 Apr 2005 08:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531161#M841583</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-04-25T08:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531162#M841584</link>
      <description>the Korn shell has built in pattern matching - for example...&lt;BR /&gt;&lt;BR /&gt;$ ksh&lt;BR /&gt;$ cd /abc&lt;BR /&gt;$ mv !(33567*) /xyz&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;No need for a loop.  But if you like them...&lt;BR /&gt;&lt;BR /&gt;$ksh&lt;BR /&gt;$ cd /abc&lt;BR /&gt;$ for i in !(33567*)&lt;BR /&gt;do&lt;BR /&gt;  mv $i /xyz&lt;BR /&gt;done</description>
      <pubDate>Mon, 25 Apr 2005 08:52:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531162#M841584</guid>
      <dc:creator>Chris Shepherd_1</dc:creator>
      <dc:date>2005-04-25T08:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531163#M841585</link>
      <description>Chris,&lt;BR /&gt;&lt;BR /&gt;Both examples will fail if there are a LOT (thousands) of files, which is why a "find" with an "exec mv" works the best.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 25 Apr 2005 08:56:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531163#M841585</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-04-25T08:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531164#M841586</link>
      <description>Harry,&lt;BR /&gt;&lt;BR /&gt;I agree with you about my first example.  But I think the second works even when there are LOTS of matches.  At least that been my experience with other enviroments (Tru64 UNIX and other older machines).  My HP-UX box refuses to go wrong either way - I clearly don't have enough files.&lt;BR /&gt;&lt;BR /&gt;Chris.</description>
      <pubDate>Mon, 25 Apr 2005 09:21:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531164#M841586</guid>
      <dc:creator>Chris Shepherd_1</dc:creator>
      <dc:date>2005-04-25T09:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531165#M841587</link>
      <description>Chris,&lt;BR /&gt;&lt;BR /&gt;You could encounter this:&lt;BR /&gt;&lt;BR /&gt;#foo=0&lt;BR /&gt;#for i in `find / -type f` ^Jdo^Jfoo=`expr $foo + 1`^Jdone&lt;BR /&gt;&lt;BR /&gt;sh: There is not enough memory available now.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2005 10:09:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531165#M841587</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-04-25T10:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531166#M841588</link>
      <description>Harry,&lt;BR /&gt;&lt;BR /&gt;As Manuel In Fawlty Towers might say; 'Que?'</description>
      <pubDate>Mon, 25 Apr 2005 10:46:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531166#M841588</guid>
      <dc:creator>Chris Shepherd_1</dc:creator>
      <dc:date>2005-04-25T10:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531167#M841589</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;how about this?&lt;BR /&gt;&lt;BR /&gt;cd /targetdir&lt;BR /&gt;&lt;BR /&gt;for file in `ls -lrt|awk '$9~/33567*/{print $9}'`&lt;BR /&gt;do&lt;BR /&gt;whatever you want&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Apr 2005 01:43:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531167#M841589</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-04-26T01:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531168#M841590</link>
      <description>Hi Michael&lt;BR /&gt;I like to do like this&lt;BR /&gt;$ mv !(33567*) /xyz&lt;BR /&gt;//defauld shell of HP UX 11i is posfix&lt;BR /&gt;some things like Chris Shepherd solution&lt;BR /&gt;HTH</description>
      <pubDate>Tue, 26 Apr 2005 02:15:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531168#M841590</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2005-04-26T02:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531169#M841591</link>
      <description>IMHO, the best and most general way is the 'find' command as mentioned by Harry and Devender.&lt;BR /&gt; &lt;BR /&gt;Any other way that uses an in-line string could, as also mentioned, cause a memory overflow error.  Perhaps not on your current HPUX, whose new command buffer size is very large, but if you try it on older HPUX or other Unixes, it could be an issue.  Plus, 'find' is very powerful and useful and you should learn how to use it!!&lt;BR /&gt; &lt;BR /&gt;For example, even Patick's command could have a problem:&lt;BR /&gt; &lt;BR /&gt;for file in $(cat /var/tmp/afile)&lt;BR /&gt;do&lt;BR /&gt;mv /abc/${file} /xyz&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;since the results of the 'cat' are used in-line.&lt;BR /&gt; &lt;BR /&gt;When doing something like Patrick's example and when the size is unknown, I generally do it this way:&lt;BR /&gt; &lt;BR /&gt;while read f&lt;BR /&gt;do&lt;BR /&gt;mv /abc/${f} /xyz&lt;BR /&gt;done &amp;lt; /var/tmp/afile&lt;BR /&gt; &lt;BR /&gt;where the shell is directly reading "/var/tmp/afile" (the re-direct must be placed on the 'done').&lt;BR /&gt;This technique (shell loop reading input into a variable) is a great one to know.&lt;BR /&gt;This method works no matter how large "/var/tmp/afile" might be, and it doesn't require the extra pipe and cat process.&lt;BR /&gt; &lt;BR /&gt;However, for readability when I might not be the only one ever to look at the script, I sometimes use the slightly less efficient:&lt;BR /&gt; &lt;BR /&gt;cat /var/tmp/afile \&lt;BR /&gt;| while read f&lt;BR /&gt;do&lt;BR /&gt;mv /abc/${f} /xyz&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt;bv&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Apr 2005 07:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531169#M841591</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-04-26T07:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531170#M841592</link>
      <description>Bob,&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;That memory error was from a machine that is very current in patches and has 2.5 Gb of memory with the following limits:&lt;BR /&gt;[root@vpart1 /var/adm/syslog]# ulimit -a&lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;data(kbytes)         262144&lt;BR /&gt;stack(kbytes)        8192&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;coredump(blocks)     4194303&lt;BR /&gt;nofiles(descriptors) 512&lt;BR /&gt;&lt;BR /&gt;I agree that any process that tries to do "INLINE" globbing will some day DIE a nasty death and everyone will look at themselves and say "it's worked like that for years, why did it die?" - answer -&amp;gt; Shitty coding.&lt;BR /&gt;&lt;BR /&gt;a personal quote "anyone can write a program, but not everyone can be a programmer"&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Apr 2005 08:08:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531170#M841592</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-04-26T08:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531171#M841593</link>
      <description>I think there is a lot of confusion here, at the risk of adding to it here is a fuller explanation of my earlier postâ ¦&lt;BR /&gt;&lt;BR /&gt;When the shell executes a command it expands expressions and then calls exec(2).  Exec is limited by a buffer which is defined by ARG_MAX (to see yours type - getconf ARG_MAX).&lt;BR /&gt;&lt;BR /&gt;So when the command expands to a list (plus environment variables) that is greater than ARG_MAX you get an â  arg list too longâ   error message.  So as I said before - I agree that my first example can  fail (see below**).&lt;BR /&gt;&lt;BR /&gt;In the â  for loopâ   example however, although the expansion of !(33567*) is still performed by the shell, the result of the expansion is not being passed to another program. So the kernel's limit on the size of the exec(2) argument does not come into play.&lt;BR /&gt;&lt;BR /&gt;** If you have the latest HP-UX your ARG_MAX should be 2Mb thatâ</description>
      <pubDate>Tue, 26 Apr 2005 09:05:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531171#M841593</guid>
      <dc:creator>Chris Shepherd_1</dc:creator>
      <dc:date>2005-04-26T09:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: a simple shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531172#M841594</link>
      <description>Chris,&lt;BR /&gt;Good points.&lt;BR /&gt; &lt;BR /&gt;But, simply stated, if you use command line strings, then it's not a general solution -- i.e., it's not guaranteed to work in all cases.&lt;BR /&gt; &lt;BR /&gt;However, your point is interesting. I haven't looked at the source and I wonder how the shell actually generates the results of a *. Probably malloc'ing memory on the fly.  And you would be right -- if the shell didn't have to pass it, he could use it directly himself.  Still, it is *theoretically* possible for the shell process to run out of memory or even swap space ;&amp;gt;)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;bv</description>
      <pubDate>Tue, 26 Apr 2005 10:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-simple-shell/m-p/3531172#M841594</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-04-26T10:30:46Z</dc:date>
    </item>
  </channel>
</rss>

