Reputation: 14218
I currently have this sed command that replaces foo.us.param=value
with foo.param=value
:
sed -i -e 's/\.us\./\./' file.txt
I also need it to delete any lines that contain .eu. anywhere but leave all other lines untouched. Any help would save me a long time trying to figure this out alone and would be greatly appreciated.
Upvotes: 2
Views: 448