rewrite: open file and rewrite it with new contents

[ bsd3, program, system ] [ Propose Tags ] [ Report a vulnerability ]

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.2, 0.4, 0.6, 0.8, 0.10
Dependencies base (>=4.6 && <4.7), bytestring (>=0.10 && <0.11), directory (>=1.2 && <1.3), multiarg (>=0.24 && <0.25), process (>=1.1 && <1.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 2013-11-05T02:15:11Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables rewrite
Downloads 3634 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Successful builds reported [all 9 reports]