I am executing command
ls > a.txt | sort > b.txt
This command is doing the below things :
a.txtand storing sorted output to
b.txt, but its empty.
Can anyone explain this ?
I am implementing my own shell for which I need to understand this behavior & simulate it.