我使用以下命令:
@StaticMetamodel(Contact.class)
public class Contact_ {
public static volatile SingularAttribute<Contact, String> firstNm;
public static volatile SingularAttribute<Contact, String> lastNm;
public static volatile SingularAttribute<Contact, String> emailAddress;
public static volatile SetAttribute<Contact, ManagedApplication> managedApplications;
public static volatile SetAttribute<Contact, ContactToStructure> contactToStructures;
}
我正在尝试将其写为@StaticMetamodel(ManagedApplication.class)
public class ManagedApplication_ {
public static volatile SingularAttribute<ManagedApplication, Integer> managedApplicationId;
}
文件。有没有办法以逗号分隔输出,所以我可以将它写入文本文件,例如:
$ find /mnt/DCS_01 -size +10000k -exec ls -sd {} +
26412032 /mnt/DCS_01/file.mp3
26412032 /mnt/DCS_01/file2.mp3
答案 0 :(得分:2)
您可以使用printf
-
$ find /mnt/DCS_01 -size +10000k -printf '%s,%p\n'
29038348776,/mnt/DCS_01/file1...
919345944,/mnt/DCS_01/file2...