You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Matthew Harris edited this page Jan 21, 2016
·
2 revisions
a script to remove headers and footers, will remove x number of lines from the top and y number of lines from the bottom of all the files in a directory.
> python file_trimmer.py -h
usage: file_trimmer.py [-h] path topfile bottomfile
removes X lines from top and Y lines from bottom of a file
positional arguments:
path folder containing files
topfile number of lines to remove from the top of the file (header, nav, menu)
bottomfile number of lines to remove from the bottom of the file (footer, nav, links)
optional arguments:
-h, --help show this help message and exit