hi everyone, how could I store the output of command substitution into an array
lets say I have the following output
Code:
var=$(du -h | sort -hr | grep ./ | head -3)
but this stores everything into $var, so when I output the content of $var, it shows everything in one line. How could I do stdout so it shows
size file
size file
size file