On Thu, Apr 22, 2010 at 5:07 PM, linuxuser <[email protected]> wrote:
> Something like:
> "rpm -ql audit |while read line;do cp -p $line /tmp; done", but with a
> flag like "-type=f".

You can precede the cp with a test for type file:

rpm -ql audit |\
while read line ; do
  [ -f $line ] && cp -p $line /tmp
done

Did test the code, so it might need some tweaking.

Good luck and let us know how it goes.

Regards,
- Robert

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

Reply via email to