Reference A Capture In The Regex
$ seq 111 | sed -n 's/\([[:digit:]]\)\1/&/p'
11
22
33
44
55
66
77
88
99
100
110
111PreviousOutput Only Lines Involved In A SubstitutionNextUse An Alternative Delimiter In A Substitution
Last updated
$ seq 111 | sed -n 's/\([[:digit:]]\)\1/&/p'
11
22
33
44
55
66
77
88
99
100
110
111Last updated