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 ( DUP, "dups.txt" ) or die;
open ( NODUP, ">nodups.txt" ) or die;
my $line_num;
my $last_line_num = "this is not a line num";
while( <DUP> ) {
($line_num) = split;
if ( $line_num ne $last_line_num ) {
print NODUP
}
$last_line_num = $line_num
}
close( DUP ) or die;
close( NODUP ) or die;
last_line_num="not valid"
cat dups.txt | while read
do
if [ $1 != "$last_line_num" ]; then
# copy the entire input line to nodups.txt
echo $* > nodups.txt # Not sure about this
fi
last_line_num=$1
done