📅  最后修改于: 2022-03-11 15:04:45.690000             🧑  作者: Mango
代码示例1
# print all the lines in every file passed via command line that contains login
ARGF.each do |line|
puts line if line =~ /login/
end