java - How do I redirect the output of one process as an input to another process? -


this question has answer here:

i need execute command, ps -aux | awk ' /^user/ { system("pstree " $2) }' can't execute both in 1 process execute both in separate processes , redirect output of ps -aux process input awk process.how code this? please help.

the pipe character (|) connects standard output of command left standard input of command right. it's doing ask.

if question related java, want official pipe class (courtesy @kajacx).


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -