From 291b75c0d26394a12eddc0686d5d311a5d9f5afc Mon Sep 17 00:00:00 2001 From: alien2003 Date: Fri, 28 Dec 2018 15:53:56 +0200 Subject: [PATCH] Initial commit --- vcard-gen.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 vcard-gen.sh diff --git a/vcard-gen.sh b/vcard-gen.sh new file mode 100644 index 0000000..6d01a2a --- /dev/null +++ b/vcard-gen.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +seq 380500000001 380509999999 > numbers.txt + +sed -i -e 's/38050/+38050/g' numbers.txt + +split -l 50000 numbers.txt splitted + +for input in splitted*; do + awk '{ printf( "BEGIN:VCARD\nVERSION:2.1\nN:;%s\nFN:%s\nTEL;HOME;VOICE:%s\nREV:20121206T114903Z\nEND:VCARD\n\n" , $1 , $1 , $1 ) }' "$input" > +vcard_"$input".vcf +done + +rm splitted* + +rm numbers.txt