Liste des Groupes | Revenir à co vms |
On 10/05/2025 7:32, David Meyer wrote:Maybe it's just me, but I don't think that will work in DCL. :-)I found that one way to do it is to put all the processing that uses thetry e.g.
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?
$ count=$( dir *.sh | wc -l )
$ echo $count
25
Les messages affichés proviennent d'usenet.