I have a text file which contains some simple strings like
StatusInfoSet (2, 12), StatusInfoSet (2, 44) I would like delete any empty line in the file and rewrite it in below pattern to the same file as well as printing it.
StatusInfoSet (2, 12) StatusInfoSet (2, 44) I forgot to add that my data too has some string like (not all contain brackets)
Hello, Hello, Hello, Hello, Hello Any guidance would be really helpful.