From: "Wolfgang Nádasi-Donner" Date: 2007-01-27T06:55:07+09:00 Subject: Re: script with -e command line option??? Suresh Unadrad schrieb: > If I type in the following example from "Programming Ruby", I get an > error: > > $ ruby -n -e "print if /wombat/" *.txt > -e:1: No such file or directory - if (Errno::ENOENT) > > This is from a BASH command line on a linux system with ruby 1.8.4 My answer is from Windows 2000, Ruby 1.8.5, but the reason may be, that there is no file in your directory which mathes "*.txt" >>>>> Example from Windows Console >>>>> C:\Dokumente und Einstellungen\wolfgang\Desktop>type otto.txt Hello, world! I'm here to wombat all thinks, whatever wombat means... C:\Dokumente und Einstellungen\wolfgang\Desktop>ruby -n -e "print if /wombat/" *.txt I'm here to wombat all thinks, whatever wombat means... >>>>> EoE >>>>> Wolfgang Nádasi-Donner