Find all CDC* files under current directory that were accessed less than 1 day ago and delete the first and last lines from those files
find .  -type f -name "CDC*" -ctime -1 -exec sed -i'' -e '1d' -e '$d' '{}'  \;