ref -f filename type
The condition is that the references are located in the second field of each record.
ref -f new.data ubv
where "new.data" is a file with data in the ubv format.