>>>>> "B" == Berger, Daniel <djberge / qwest.com> 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