I want to recursively sort all the file in the present directly.
I tried ls -lh -R |sort >> output.txt
. But i think multi-threading problem is creating a problem, before complete output of ls -lh -R
, the sort has started to do it's work.
Now i'm getting wrong answer. How can I do it properly .
I was trying to : ANSWER THIS QUESTION