What would  ${qf} have to be so that the counts are the same?

$ qf="%{NAME}\n"

$ rpm -qa --queryformat "${qf}" | xargs rpm -q | wc -l
1197

$ rpm -qa --queryformat "${qf}" | wc -l
993

Or put another way:

qf="%{NAME}\n"
[ $(rpm -qa --queryformat "${qf}" | xargs rpm -q | wc -l ) -eq $(rpm
-qa --queryformat "${qf}" | wc -l) ] &&
echo bingo ||
echo try again

where we want a "bingo".

Regards,
- Robert

-- 
Central West End Linux Users Group (via Google Groups)
Main page: http://www.cwelug.org
To post: [email protected]
To subscribe: [email protected]
To unsubscribe: [email protected]
More options: http://groups.google.com/group/cwelug

Reply via email to