yep, that makes the job (just moved the last echo to the beggining of the loop) Thanks On Fri, 4 Mar 2005 02:13:46 -0800 (PST), Jeff Pohlmeyer <yetanothergeek@yahoo.com> wrote:
--- 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/
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com