summaryrefslogtreecommitdiff
path: root/vcf2sxmo.sh
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-08-04 21:26:48 +0200
committerxengineering <me@xengineering.eu>2022-08-04 21:26:48 +0200
commit0d9fc6b278f5c76626813d7b358dccf3bf5cbb44 (patch)
tree30a688ad86c39fbc6ab4c864e3991d15f7a3ccee /vcf2sxmo.sh
parent25e74a8d9dd3d8241bcd4ec3b0833cef94131bb3 (diff)
downloadscripts-0d9fc6b278f5c76626813d7b358dccf3bf5cbb44.tar
scripts-0d9fc6b278f5c76626813d7b358dccf3bf5cbb44.tar.zst
scripts-0d9fc6b278f5c76626813d7b358dccf3bf5cbb44.zip
Add vcf2sxmo.sh
Diffstat (limited to 'vcf2sxmo.sh')
-rwxr-xr-xvcf2sxmo.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcf2sxmo.sh b/vcf2sxmo.sh
new file mode 100755
index 0000000..073b549
--- /dev/null
+++ b/vcf2sxmo.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+
+# check dependency
+if ! command -v khard > /dev/null 2>&1
+then
+ echo 'You have to install khard!'
+ exit 1
+fi
+
+# convert khard contacts to SXMO (https://sxmo.org/) format
+khard phone -p | sed 's/\t/ /2'