Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How can TCC make an output as a part of command string

Nov
27
1
How can TCC make an output as a part of command/expression string similar to Bash ' $() ' command feature ?
 
@EXECSTR[] gives one line:
Code:
v:\> echo %@execstr[1,netstat -ano]
Active Connections
 
In reality, $(…) captures entire output, but if you assign it in string context, only first line is available.
However, if used in list context, you can read all lines one by one.
Code:
for f in $( printf "%d\\n" 1 2 3 ); do echo "$f"; done
 

Similar threads

Back
Top