From 8c1c7c21f16e5800d615130831a8932a5d2b2bd2 Mon Sep 17 00:00:00 2001 From: pks Date: Wed, 19 Feb 2020 16:19:09 +0100 Subject: misc. scripts --- exclude | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 exclude (limited to 'exclude') diff --git a/exclude b/exclude new file mode 100755 index 0000000..b5fe3cb --- /dev/null +++ b/exclude @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby + +require 'zipf' +require 'set' + +to_exclude = {} +f = ReadFile.new ARGV[0] +while line = f.gets + to_exclude[line] = true +end + +while line = STDIN.gets + if not to_exclude.has_key? line + puts line + end +end + -- cgit v1.2.3