View Single Post
Posts: 10 | Thanked: 29 times | Joined on Jun 2010 @ Germany
#19
I see, there's no leading plus sign. Just remove it from the pattern in the grep command and in the sed command and it should work:
Code:
grep -l ':[89][0-9]\{7\}$' *.vcf | xargs sed -i '/:[89][0-9]\{7\}$/s/\+/\+9/g'
 

The Following User Says Thank You to Obsidian For This Useful Post: