I have a ruby one-liner ruby1.9 -ine '#some statement' src/**. I assumed, like perl does, ruby skips the directories ( well that’s how I remember it ). But I get this error e:1:in 'gets': Is a directory. Besides giving it a list of files, is there a quick way of getting round this?
I have a ruby one-liner ruby1.9 -ine ‘#some statement’ src/** . I assumed, like
Share
If you want only files recursively, then find(1) will be your best bet :