Material throbber: use in tabstrip
[chromium-blink-merge.git] / chrome / tools / build / linux / sed.py
blobe7a6ad5273ebdd215a19278ca35ab869815dc347
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
10 import sys
11 import subprocess
13 if len(sys.argv) <= 3:
14 print "Need at least 3 arguments to sed.py"
15 sys.exit(1)
17 infile = sys.argv[1]
18 outfile = sys.argv[2]
20 sys.exit(subprocess.call('sed "' + '" "'.join(sys.argv[3:]) + '" ' + infile +
21 ' > ' + outfile, shell=True))