@hackage rewrite0.6
open file and rewrite it with new contents
Categories
License
BSD-3-Clause
Maintainer
omari@smileystation.com
Links
Versions
Installation
Dependencies (0)
- base >=4.6 && <4.7
- bytestring >=0.10 && <0.11
- directory >=1.2 && <1.3
- multiarg >=0.24 && <0.25
- process-extras >=0.2 && <0.3 Show all…
Dependents (1)
@hackage/acme-everything
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