Currently I'm generating text from a command, eg:
(with-temp-buffer
(call-process "my-command" nil t nil "my" "args")
;; operate on output in current buffer.
)
How can I use pipes, something that would be written in shell like this:
my-command my args | wc -l
Note, this is just an example command, doing the same operation without pipes wont address this question.