Sha256: 39ba5357ef9eae8fd8008a39e53c32d66d2bbf6dd932f47d4b19e65705b6526c

Contents?: true

Size: 159 Bytes

Versions: 27

Compression:

Stored size: 159 Bytes

Contents

pattern = Regexp.new(ARGV[0])
filename = ARGV[1]

file = File.open(filename)
file.each_line do |line|
  if pattern =~ line
    print line
  end
end
file.close

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ruby_learner-1.2.9 contents/takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.2.8 contents/takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.2.7 contents/takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.2.6 contents/takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.2.5 contents/takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.2.4 contents/takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.2.3 contents/takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.2.2 contents/takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.2.1 contents/takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.2.0 contents/takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.1.15 takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.1.14 takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.1.13 takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.1.11 takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.1.10 takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.1.9 takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.1.8 takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.1.7 takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.1.6 takahashi/sample_prog/answer/9_3.rb
ruby_learner-1.1.5 takahashi/sample_prog/answer/9_3.rb