06-04-2023, 12:49 PM
Code:
#!/bin/awk -f
BEGIN{FS=","}
{
gsub(/"/,"",$2)
gsub(/"/,"",$4)
print "BEGIN:VCARD"
print "VERSION:4.0"
print "FN:"$4
print "TEL;TYPE=cell:"$2
print "END:VCARD"
}
Code:
mmcli -m any --command='AT+CPBR=1,250' | awk -f mmcli2vcf.awk > contacts.vcf