Quantcast
Channel: Sed replace regex pattern with nothing - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 2

Sed replace regex pattern with nothing

$
0
0

Hey so I want to replace a regex pattern with nothing, I've tried multiple sed routes but none seem to be working, i.e

sed -i 's/\.\d{1,3}\b$//'

Example of input,

Hello.123Hello.123.90

expected output would be,

HelloHello.123

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images