awk

awk examples

awk '{printf("Used %i file descriptors (max %i)\n", $1-$2, $3)}' /proc/sys/fs/file-nr
awk '!x[$0]++' file.txt