Reputation: 1687
This query saves Standard Out and Standard Error to same file (out):
find /home -not -group root > ~/out 2>&1
How can I combine contents of both streams alphabetically and save to a file?
Thank you
Upvotes: 0
Views: 227
Reputation: 799180
Pass them to sort
.
find /home -not -group root > >(sort > ~/out) 2>&1
Upvotes: 1