rewrite: open file and rewrite it with new contents

[ bsd3, program, system ] [ Propose Tags ]

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 [RSS] [faq] 0.2, 0.4, 0.6, 0.8, 0.10
Dependencies base (==4.6.*), bytestring (==0.10.*), directory (==1.2.*), multiarg (==0.24.*), process (==1.1.*) [details]
License BSD-3-Clause
Copyright 2013 Omari Norman
Author Omari Norman
Category System
Home page
Source repo head: git clone git://
Uploaded by OmariNorman at 2013-11-05T02:15:11Z
Distributions NixOS:0.10
Executables rewrite
Downloads 3256 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
Successful builds reported [all 9 reports]


Maintainer's Corner

For package maintainers and hackage trustees