#!/bin/bash

pathlist="$(find /usr/share/kbd/keymaps -type f)"
filelist=($(find /usr/share/kbd/keymaps -type f | sed 's|.*/||g'))

(
for file in ${filelist[@]}; do
    if [ $(echo "$pathlist" | grep -e "\/$file\$" | wc -l) -gt 1 ]; then
        echo "$(echo "$pathlist" | grep -e "\/$file\$")"
    fi
done
) | sort -u
