armorpax.blogg.se

Hypack raw code
Hypack raw code






Parse two files, one located in your current directory and one located elsewhere, and write every 50th line to a new file named hypack_output.txt python hypack.py -input SAMPLE_HYPACK.RAW /Users/admin/Documents/HYPACK.RAW -lines 50 -output hypack_out.txt Parse a single file and write to new_tide.txt (the default output filename) python hypack.py -input SAMPLE_HYPACK.RAW Parse a single file and print every 100th line to screen without writing to file python hypack.py -input SAMPLE_HYPACK.RAW -dry-run -lines 100 Parse a single file and print the output to screen without writing to file python hypack.py -input SAMPLE_HYPACK.RAW -dry-run Get help on how to use the script python hypack.py -h For Windows systems, see here for instructions. A Windows environment may differ slightly in certain syntatical elements.Īll Cookbook samples assume you are running the script for the directory it's location in and have Python properly inserted into your system path. It will not work with Python 3.x.Įxamples are written for a Unix-based shell.

hypack raw code

The script works for Python version 2.x only.








Hypack raw code