Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
619 B

#
# This perl script removes extra lines & spaces from a file
#
while (<STDIN>) {
$line = $_;
#
# Remove blank lines
#
if ($line =~ /^\s*$/) {
;
} else {
#
# Remove extra spaces from the file and then remove any spaces at
# the beginning & end of each line
#
$line =~ s/\s+/ /g;
$line =~ s/^\s//g;
$line =~ s/\s$//g;
print "$line\n";
}
}
#
# This script replaces the sed script dlg.sed
#
# /^$/d
# /^ *$/d
# s/ / /g
# s/ / /g
# s/^ //g
#