• + 2 comments

    sed -E "s/([0-9]{4} ){3}/** ** **** /g" expl: ([0-9]{4}) tells sed that find group of 4 digits and {3} tells no of groups , so we are capturing 3 groups of 4-digits and replaces them with *