#!/bin/bash if [ -z "$1" ] then fname="/var/log/rsync.log" else fname="$1" fi awk '/ from / {print $NF}' $fname | sort | uniq -c | sort -n | tail -20