I am writing a bash script, and on a condition I'd like to output
ps aux --sort -rss
However, when I write :
echo `ps aux --sort -rss`
everything is on one huge line. How do I run it so it outputs like it normally does in a terminal?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community