I have a huge list of IP address in a file and I want to replace all the IP address to a specified string( Example : X.X.X.X).
IP address
( Example : X.X.X.X)
#Ex
You were almost there! All that you have to do is escape the repetition braces:
sed -e 's/[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}/x.x.x.x/g' test.txt