Sort by

recency

|

112 Discussions

|

  • + 0 comments

    By using grouping, i found this solution

    sed -E 's/([0-9]{4}\s){3}([0-9]{4})/**** **** **** \2/g'

  • + 0 comments

    Simple Solution

    sed -E 's/[0-9]{4} /**** /g'
    
  • + 0 comments

    my answer

    sed -E 's/\d{4} /**** /g'
    
  • + 0 comments

    Not a pretty solution but it works.

    sed 's/\d\{4\} \d\{4\} \d\{4\}/**** **** ****/1'
    
  • + 0 comments

    I did the long way...

    cat > file cat file | sed 's/.//1' | sed 's/.//2' | sed 's/.//3' | sed 's/.//4' | sed 's/./ /5' | sed 's/.//6' | sed 's/.//7' | sed 's/.//8' | sed 's/.//9' | sed 's/./ /10' | sed 's/.//11' | sed 's/.//12' | sed 's/.//13' | sed 's/.//14'