unix command to replace with newline code example Example: sed match newline sed 's/\n/[replacement]/g' file #Use this command to replace newlines