Change all occurrences of $" into "'$'
Change all occurrences of egrep into grep -E
Even if we do not know why the ucfr script failed in the original poster's environment, these modifications might be worth being considered for future versions of the ucfr script.
Meanwhile in https:/ /answers. launchpad. net/ubuntu/ +source/ ucf/+question/ 448737 we identified two areas where the ucfr script misbehaved in the environment of the original poster.
The following workarounds helped:
Change all occurrences of $" into "'$'
Change all occurrences of egrep into grep -E
Even if we do not know why the ucfr script failed in the original poster's environment, these modifications might be worth being considered for future versions of the ucfr script.