1 2 3 4 5 6
#!/bin/bash FILE=$(find /mnt/vmstore -type f -printf "%s\t%p\n" | sort -n | tail -n 1 | awk '{print $2}') exec speedcheck "$FILE"