X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fduplicate_record;h=9caa8646e1d51d29809fd8f2fe7b95b5dad5b4b2;hb=48bea5c28b89dc5586d0bddb338ccd6ba23aa1f9;hp=af3d112f92c99b6ceb15fdd6c43582e83a2f0f59;hpb=789478ebeceefec32d6c222f8bfff19f1078076d;p=biopieces.git diff --git a/bp_bin/duplicate_record b/bp_bin/duplicate_record index af3d112..9caa864 100755 --- a/bp_bin/duplicate_record +++ b/bp_bin/duplicate_record @@ -39,7 +39,7 @@ key = options[:key].to_sym Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| input.each_record do |record| - if record.has_key? key + if record[key] (0 ... record[key].to_i).each { output.puts record } else output.puts record