Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
open (IN, "file.name") or die "Can't open file.name: $!";
open (OUT, ">outfile.txt") or die "Can't open outfile: $!";
my %hash;
while ($line = <IN>)
{
if ($line =~ /^[a-z0-9]+\s([0-9]+)\s[a-z0-9]+/)
{
$hash{$1}{line} = $line;
}
else
{
print OUT, $line;
}
}
foreach $key (sort keys %hash)
{
print OUT, $hash{$key}{line};
}
close OUT;
close IN;