Lets say I have the fallowing cmd:
ls | grep dir
If there are folders which names contains dir then ill see them.
If there arent, then I wont see any output at all.
Now, What i want is to see the output of the ls command, and then also see the final output after the grep.
Lets say something like this:
>>ls | grep dir
filea fileb filec
filed dir1 dir2
dir1
dir2
Where the first 2 rows are the result of ls and the last 2 rows are the result of the grep command.
How do i do that?