aboutsummaryrefslogtreecommitdiff
path: root/challenge-001/abigail/ruby/ch-1.rb
blob: 534e2f64e3e4796cfef84c2e55dea1b49ba49b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#
# See https://theweeklychallenge.org/blog/perl-weekly-challenge-001
#

#
# Run as: ruby ch-1.rb < input-file
#

ARGF . each_line do |_|
    puts _ . gsub "e", "E"
    puts _ . count "e"
end