2 d
="$1"; test "$#" "=" "0" ||
shift
4 awk -v d
="${d:+$d : }" -v x
="$*" \
5 'BEGIN{if(x&&d){split(x,l," ");for(e in l)print d l[e]}}!/^#(line)?[ \t]+[0-9]/{next}{sub(/^[^"]+"/,"");sub(/".*$/,"");if(/^[\/<#]/)next;sub(/^\.\//,"");if(!s[$0]){s[$0]=1;print d $0}}' |