history | awk ‘{print $2}’| awk ‘BEGIN {FS=”|”} {print $1}’| sort| uniq -c | sort -r
You may need to modify the first print $2 point to your column that has all your commands if you run a non-default history like I do.
history | awk ‘{print $2}’| awk ‘BEGIN {FS=”|”} {print $1}’| sort| uniq -c | sort -r
You may need to modify the first print $2 point to your column that has all your commands if you run a non-default history like I do.