From: Robert Klemme Date: 2007-03-30T16:05:09+09:00 Subject: Re: Rethinking the Generic Ruby Oneliner... On 26.03.2007 08:00, Brian Candler wrote: > On Mon, Mar 26, 2007 at 07:55:05AM +0900, Paul Stickney wrote: >> Maybe: >>>> ruby -rmylibrary -e "replaceString" -- --find startPath --matching pathRegex -i.bak --gsub searchRegex >> If that's too long, maybe a shell/program wrapper ^^ >>>> myruby --find startPath --matching pathRegex -i.bak --gsub searchRegex -e "replaceString" > > If you call it x.rb then you can have ruby -rx ... Or create a shell script ("rubyfind") that does the command line parameter interpretation. You could even implement the shell script in ruby making your life much easier. :-) Kind regards robert