This question already has an answer here:
- Using sed with special characters 5 answers
Today I've come across this command for extracting domain name from domain controller's FQDN:
DOMAIN_NAME=$(echo $DC_PC | sed -r 's!^[^.]+\.!!')
What is the meaning of these exclamation marks in sed? How does it work?