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' command #4
'Sed' command #4
Sort by
recency
|
113 Discussions
|
Please Login in order to post a comment
Does Bash-online-complier supports control structure as loops and conditional statment ?
the following command works correctly on my local Unix-based system, but it does not behave as expected in the online compiler!!
By using grouping, i found this solution
sed -E 's/([0-9]{4}\s){3}([0-9]{4})/**** **** **** \2/g'
Simple Solution
my answer
Not a pretty solution but it works.