diff options
author | pks <pks@pks.rocks> | 2024-04-08 09:08:13 +0000 |
---|---|---|
committer | pks <pks@pks.rocks> | 2024-04-08 09:08:13 +0000 |
commit | d6bdc618e4fd92ea0be794800b73a78d2fb9991f (patch) | |
tree | 99fea9c3e4b2b158c8ce19a7148304f1ed617b4c /select-from | |
parent | 5311d7fe0c60e573c4109ddc874509d80f2d00b4 (diff) |
select-from: large files
Diffstat (limited to 'select-from')
-rwxr-xr-x | select-from | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/select-from b/select-from index e06e4fb..0ccfeac 100755 --- a/select-from +++ b/select-from @@ -11,8 +11,8 @@ opts = Optimist::options do end accept = {} -f = ReadFile.new opts[:index] -f.readlines_strip.each { |line| +f = File.open opts[:index] +f.each_line { |line| i = line.strip.to_i accept[i] = true |