Skip to content

tylerc-atx/script_library

Repository files navigation

script_library

Minor scripts in bash (.sh) and python (.py)


convert_tab_to_csv.py

Used to avoid quote-related parsing errors

A command-line invoked, very verbose, tab-delimited-to-csv-delimited file converter that outputs all lines to STDOUT to make its changes transparent. Includes representative strings with escape characters printed. Encapsulates all fields in double-quotes to avoid SQL/Excel parsing mistakes when commas are present in field values.

Module (pydoc) instructions:

"""Converts a tab delimited file to a CSV
BASH FORMAT: $ python convert_tab_to_csv.py input_file.txt output_file.csv
Will OVERWRITE existing output file if one is present.
NOTE: Will wrap fields in quotes to prevent comma-interference if
      commas exist within fields"""

rpn.py

A very useless reverse-polish notation calculator script

Also stores ongoing expressions as you calculate. This calculator was made as part of a workshop exercise


word_sentence_char_counter.py

Saved to preserve the elegant character-by-character parsing logic


solved*.py

Various kata that were tricky for myself or others

Emphasis on robust, not compact, solutions

About

Minor scripts in bash and python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages