# Create a leasefile in the correct format and copy it to a folder of your choice. awk '{if ($1) {$1=strftime("%c",$1); print $1 ";" $2 ";" $3 ";" $4}}' /var/lib/misc/dnsmasq.leases > /tmp/dhcpleases.txt cp /tmp/dhcpleases.txt /var/www/html/