From: ts Date: 2002-05-14T00:17:49+09:00 Subject: Re: Inline editing (non-command line) >>>>> "B" == Berger, Daniel writes: B> I'm looking for a way to modify a file inline without using a temp file. I Without a temp file, I know only this pigeon% cat -e aa aaaaaaaaaa$ bbbbbbbbbb$ pigeon% pigeon% cat b.rb #!/usr/bin/ruby require 'mmap' a = Mmap.new "aa", "rw" a.gsub!(/\n/, "\r\n"); pigeon% pigeon% b.rb pigeon% pigeon% cat -e aa aaaaaaaaaa^M$ bbbbbbbbbb^M$ pigeon% Guy Decoux