perl -l -0777 -pe 's/\n+(\D)/\1/g' file
Or if the lines shouldn't be joined across the blank lines then this:
perl -l -00 -pe 's/\n(\D)/\1/g' file
--
John.
In reply to Re: text file problem
by jmcnamara
in thread text file problem
by perlCrazy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |