#!/bin/bash if [[ ! $@ ]]; then echo 'Prints the list of icons required by the projects in the specified directories.' echo 'However, no project directories have been specified.' exit -1 fi declare -A icon_names # iterate over specified source directories for srcdir in "$@"; do # find icons in *.ui files for iconset in $(find "$srcdir" -iname '*.ui' -print0 | xargs -0 cat | grep -Po '