O abaixo deve fazê-lo. globstar
deve exigir bash 4.0 +
shopt -s globstar # Set the initial filename. Can be had from $@ if you wanted to. the_file="filename.mpg" # Roll through pretty much the entire server for file in /**; do if [[ -l "${file}" ]]; then tmp="$(readlink "${file}")" [[ "${tmp##*/}" == "${the_file##*/}" ]] && ls -l "${file}" fi done