#!/bin/sh -efu while IFS=$'\t' read -r f t; do case "$f" in ${RPM_BUILD_ROOT-}/lib/systemd/system/*) ;; *) continue ;; esac case "$t" in *'symbolic link to '*) ;; *) echo "$f" ;; esac done