WoNáDo
1/26/2007 9:53:00 PM
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