Cut attribute in different file formats