There are whole books on sed, so there is no way a single post is going to go into had sed works... but as for what the command is doing. It is looking for lines with CustName -- and is (a) removing <CustName> and (b) removing /CustName followed by any characters to the end of line.