tags:

views:

64

answers:

1

I have the following in .zshrc

setopt multios

I am trying to do the following with the above option enabled in Zsh

ls -1 | tee file.txt | less

I run the following command unsuccessfully

ls -1 | file.txt | less

and the following too

ls -1, file.txt, less

How can you use multiple outputs in Zsh without the command tee?

+1  A: 

That second one is the wrong syntax, it should be

ls -1 > file.txt | less
paxdiablo
Thank you for your answer!
Masi