View Single Post
Posts: 432 | Thanked: 917 times | Joined on Jun 2011
#13
Originally Posted by Obsidian View Post
Try this in the folder where your vcf files are:
Code:
grep -l ':+[89][0-9]\{7\}$' *.vcf | xargs sed -i '/:+[89][0-9]\{7\}$/s/\+/\+9/g'
.
Thanks bro... I did try it on my kali box but:
Code:
~/Exported contacts$ grep -l ':+[89][0-9]\{7\}$' *.vcf | xargs sed -i '/:+[89][0-9]\{7\}$/s/\+/\+9/g'
sed: no input files
I should try to debug your line but i really didn't understand anything
And, yes, the .vcf files are in that folder. Am i missing something ?

edit: busybox gives me another output:
Code:
~/MyDocs/Exported contacts $ grep -l ':+[89][0-9]\{7\}$' *.vcf | xargs sed -i '
/:+[89][0-9]\{7\}$/s/\+/\+9/g'
sed: -i requires an argument
Thanks again buddy !!!

Last edited by saponga; 2014-04-30 at 15:11.