In a text file, there are several blank lines and how to remove all of them in a simple way ?
str="adf{adfadfsa
dddd sdf sdf,
dfdsf
dfsfda
|df"
After done,
res="adf{adfadfsa
dddd sdf sdf,
dfdsf
dfsfda
|df"