We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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 *
'Sed' command #4
You are viewing a single comment's thread. Return to all 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 *