#!/bin/bash while read filepath do if [[ "$filepath" == *maven-fragments/* ]]; then echo "$filepath" | /usr/lib/rpm/maven.prov fi done < "${1:-/proc/${$}/fd/0}"