added sed script and testing output