tags:

views:

304

answers:

1

Penz says that the problem could be solved by Multios and coproc features in the thread.

However, I am unsure about the solution.

I do know that you can use multios as

ls -1 > file | less

but I have never used such that you have two inputs.

How can you use these features to have a pipe loop in Zsh?

+1  A: 

I am having trouble understanding the questions.

Are you trying to do the following:

(ls -1 && file) | less

Where && is used for multiple commands on a single line.

Or are you trying to do the following:

ls -1 | tee file | less

Where tee puts the output into the file and standard out.

Mr Jacques
@Jacques: Thank you for your answer!
Masi