The R Project SVN R

Rev

Rev 168 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#!/usr/bin/perl -w
#
## Replace multiple empty lines by single empty lines
## -- but still leave ONE EMPTY !!

$/="\n\n"; # input  record separator
Para:
 while (<>) {
 print $_ unless /^\n\n$/
}