diff options
author | Guido van Rossum <guido@python.org> | 1994-08-19 10:51:31 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-19 10:51:31 +0000 |
commit | d4d77284408316a68cdc2ab9e8e1d4a06e534938 (patch) | |
tree | f25369ac9cc34663abcfd3be4b08035d8fe72c62 /Mac/scripts/crlf.py | |
parent | e89bc75048d0142859379b2b92e77d984fdbef6e (diff) | |
download | cpython-git-d4d77284408316a68cdc2ab9e8e1d4a06e534938.tar.gz |
Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.
Diffstat (limited to 'Mac/scripts/crlf.py')
-rwxr-xr-x | Mac/scripts/crlf.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Mac/scripts/crlf.py b/Mac/scripts/crlf.py index f52867a34e..6506cdcec4 100755 --- a/Mac/scripts/crlf.py +++ b/Mac/scripts/crlf.py @@ -1,5 +1,9 @@ #! /usr/local/bin/python +# Replace \r by \n -- useful after transferring files from the Mac... +# Run this on UNIX. +# Usage: crlf.py file ... + import sys import os import string @@ -7,8 +11,8 @@ import string def main(): args = sys.argv[1:] if not args: - print 'no files' - sys.exit(1) + print 'usage:', sys.argv[0], 'file ...' + sys.exit(2) for file in args: print file, '...' data = open(file, 'r').read() |