Find all directories with permission 0600 in the current directory and its subdirectories up to 4 levels deep, and delete the third line of each of them.
find ~ -maxdepth 4 -type d -perm 0600 -exec sed -i '3q;d' {} \;