#!/bin/bash echo "-- Processes using more than 0% Memory" echo -e 'Date\t\t\tMem%\t#procs\tApplication' ps aux | awk '{print $4"\t"$11"\t"$16}' | sort | uniq -c | awk '{if($2>0) print d"\t"$2"\t"$1"\t"$3"\t"$4}' d="$(date +'%m/%d/%Y %H:%M:%S')" | sort -nr echo "-- free -m" free -m