--- Ciro Iriarte <cyruspy@gmail.com> wrote:
have no idea how to print the filename in every line of the output.
Quick-and-dirty guess: #!/bin/bash for RPM in `find -type f -name "*.rpm"` do echo '---> '$RPM echo '-----------------------------------------------------------------' rpm -qp -i -l -v $RPM | awk '{printf("'$RPM': %s\n", $0)}' echo '-----------------------------------------------------------------' echo '-----------------------------------------------------------------' echo '-----------------------------------------------------------------' echo '-----------------------------------------------------------------' done __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/