Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby read stdin

# print all the lines in every file passed via command line that contains login
ARGF.each do |line|
    puts line if line =~ /login/
end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ruby #read #stdin
ADD COMMENT
Topic
Name
8+9 =