projects
/
grml-tips.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update Blog URL
[grml-tips.git]
/
grml-tips-tags
diff --git
a/grml-tips-tags
b/grml-tips-tags
index
3b27469
..
a7a4d49
100755
(executable)
--- a/
grml-tips-tags
+++ b/
grml-tips-tags
@@
-24,9
+24,12
@@
while (my $line = <$fh>) {
push @tags, split(/[, ]+/, $1);
}
push @tags, split(/[, ]+/, $1);
}
+close ($fh);
#make tags unique
my %seen = ();
@tags = grep { ! $seen{$_} ++ } @tags;
#make tags unique
my %seen = ();
@tags = grep { ! $seen{$_} ++ } @tags;
+open (my $fh, '>', '/usr/share/grml-tips/tags')
+ or die "Could not open '/usr/share/grml-tips/tags' for writing: $!";
print $fh join("\n", @tags) . "\n";
close($fh)
print $fh join("\n", @tags) . "\n";
close($fh)