rewrite: open file and rewrite it with new contents
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
Versions | 0.2, 0.4, 0.6, 0.8, 0.10 |
---|---|
Dependencies | base (==4.6.*), bytestring (==0.10.*), directory (==1.2.*), multiarg (==0.16.*), process-extras (==0.2.*) [details] |
License | BSD-3-Clause |
Copyright | 2013 Omari Norman |
Author | Omari Norman |
Maintainer | omari@smileystation.com |
Category | System |
Home page | http://www.github.com/massysett/rewrite |
Source repo | head: git clone git://github.com/massysett/rewrite.git |
Uploaded | by OmariNorman at Tue Jul 9 18:16:13 UTC 2013 |
Distributions | NixOS:0.10 |
Executables | rewrite |
Downloads | 1700 total (4 in the last 30 days) |
Rating | (no votes yet) [estimated by rule of succession] |
Your Rating | |
Status | Docs not available [build log] Successful builds reported [all 7 reports] Hackage Matrix CI |
Downloads
- rewrite-0.4.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)