Dec-18-2017, 11:29 PM
OK, re-do everything in post 15.
This will work in python 2.7, but you have to run from the command line like:
and changing file names as appropriate.
running:
This will work in python 2.7, but you have to run from the command line like:
c:\Python27\python.exe SwapHeaders.py -i 'File1.txt' -b 'File2.txt' -o 'Fileout.txt'replacing the python command to point to your python 2.7 directory
and changing file names as appropriate.
running:
c:\Python27\python.exe SwapHeaders.py -hAs an aid, will give you:
Output:usage: SwapHeaders.py [-h] [-i ORIGINAL_FILENAME]
[-b REPLACE_ORIGINAL_FILENAME] [-o OUT_FILENAME]
optional arguments:
-h, --help show this help message and exit
-i ORIGINAL_FILENAME, --ifile ORIGINAL_FILENAME
Filename where headers are to be replaced
-b REPLACE_ORIGINAL_FILENAME, --bfile REPLACE_ORIGINAL_FILENAME
Filename containing body
-o OUT_FILENAME, --ofile OUT_FILENAME
Output filename