From: Zhao Lu Date: 2008-08-22T02:19:49+09:00 Subject: Re: Lower verbosity in IRB? You can achieve the same effect at runtime without messing with .irbrc if this is not something you want to do permanently: irb(main):001:0> conf.echo = false irb(main):002:0> log = File.open("filetoread"){|f| f.read} irb(main):003:0> Zhao On Thu, Aug 21, 2008 at 10:07 AM, Stefano Crocco wrote: > On Thursday 21 August 2008, Kyle Schmitt wrote: >> OK, this is probably a very basic question, but how do ou go about >> lowering the verbosity of irb? >> >> For instance, if you wanted to read in a decent sized log file to scan >> it for anomalies, you may do something like this: >> >> logfile=File.open("backup_08192008.log"){|f| f.read()} >> >> Normally, its fine that irb will barf out the contents of the file to >> screen. Normally it's even useful.... >> In this case however, it's really really bad. The log file I'm >> looking at is about 84 megs. >> >> Thanks, >> Kyle > > You need to create a .irbrc file in your home directory with the line > > IRB.conf[:ECHO]=false > > This file is read by irb at startup. If you're on windows, then I don't know > where this file should be put. I also suspect that there should be a way to do > it from within irb, but I don't know how. > > I hope this helps > > Stefano > > -- Zhao