function printCDs(CDs, attrib, type)
% usage: printCDs(CDs, attrib, type) 
% print the specified attribute of all the CDs
%   attrib must be one of the attributes as a character string
%   type specifies the print form to be used by fprintf

for CD = CDs
    fprintf(['%s: %' type '\n'], attrib, CD.(attrib))
end