diff options
author | pks <pks@macbook.local> | 2020-02-19 16:19:09 +0100 |
---|---|---|
committer | pks <pks@macbook.local> | 2020-02-19 16:19:09 +0100 |
commit | 8c1c7c21f16e5800d615130831a8932a5d2b2bd2 (patch) | |
tree | 5bbae3e11b810dac500631e01342b8d15b1e92b5 /exclude | |
parent | 4bb4c4b4e35d00a4a8e96a3f1de4301f481b9cc6 (diff) |
misc. scripts
Diffstat (limited to 'exclude')
-rwxr-xr-x | exclude | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 + |