1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # Usage sed.py <infile> <outfile> [<other args>]
7 # Does the equivalent of
8 # sed <options> infile > outfile
13 if len(sys
.argv
) <= 3:
14 print "Need at least 3 arguments to sed.py"
20 sys
.exit(subprocess
.call('sed "' + '" "'.join(sys
.argv
[3:]) + '" ' + infile
+
21 ' > ' + outfile
, shell
=True))