Robert Klemme
3/30/2007 7:00:00 AM
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