#!/bin/bash

for file in $(find /etc/cron.d -type f); do
    [[ $(tail -c 1 $file | wc -l) -eq 0 ]] && echo >> $file || true
done
