rewrite

open file and rewrite it with new contents http://www.github.com/massysett/rewrite

Latest on Hackage:0.10

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Omari Norman

In the Unix shell there is no easy way to use a filter program to change the contents of a file in-place. For example, if you want to sort a file in place, this will not work:

sort < myfile > myfile

All that will get you is an empty myfile. This package gives you the rewrite program, so this will work:

rewrite myfile sort

Used by 1 package:
comments powered byDisqus