amprantino
amprantino

Reputation: 1687

Linux I/O Redirection

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

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799180

Pass them to sort.

find /home -not -group root > >(sort > ~/out) 2>&1

Upvotes: 1

Related Questions