0

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?

Community
  • 1
  • 1
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697

1 Answers1

2

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.

MrJacqes
  • 373
  • 1
  • 4