#!/bin/sh while IFS= read -r d; do if [ ! -d "$d" ]; then rm -f "${d%.d/}" fi done dconf update