Normalizes a path, taking out '.' and '..' pathNormalizeRegex.py uses only regex to solve this problem while pathNormalize.py uses a list.
Interactive mode:
python pathNormalize.py
or file mode:
cat file | python pathNormalize.py
To quit the program, enter a blank line.