1
0
Fork 0

Initial commit

This commit is contained in:
[Alien] 2018-12-28 15:53:56 +02:00
commit 291b75c0d2
1 changed files with 16 additions and 0 deletions

16
vcard-gen.sh Normal file
View File

@ -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