Wednesday, August 28, 2013

Sort the output of df while keeping the header at the top.


df -hP | awk 'NR==1;NR>1{print|"sort -k5rn"}' #

No comments:

Post a Comment