BEGIN { FS=" " OFS=";" } { print $1, $3 } END { printf "\nThe file has %d lines\n", NR }