home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 262,681 of 264,096   
   Henry Crun to David Meyer   
   Re: Capturing DCL output in symbol   
   10 May 25 08:04:57   
   
   From: mike@rechtman.com   
      
   On 10/05/2025 7:32, David Meyer wrote:   
   > I found that one way to do it is to put all the processing that uses the   
   > command output inside subshells in the same PIPE command.   
   >   
   > One shortcoming of this method is that it's very easy to go over the   
   > maximum command element length allowed inside the PIPE. For my   
   > procedure, I was able to get around this by choosing lexical functions   
   > to minimize the length of the PIPE command.   
   >   
   > Any other way to do this?   
      
   try e.g.   
   $ count=$( dir *.sh | wc -l )   
   $ echo $count   
   25   
      
   HTH   
      
   --   
   -- No Micro$oft products were used in the URLs above, or in preparing this   
   message. Recommended reading:   
   http://www.catb.org/~esr/faqs/smart-questions.html#befor   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca