Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 649 Bytes

File metadata and controls

31 lines (29 loc) · 649 Bytes

pythonutils

Some handy python scripts

Google wasn't very helpful when determining how to combine two wordlists such that every word from
list 1 has every word from list 2 appended to create a new list that is list1 * list2 in size.

For example:
Word list 1
Jan
Feb
Mar
Word list 2
2017
2018
2019

Result
Jan2017
Jan2018
Jan2019
Feb2017
Feb2018
Feb2019
Mar2017
Mar2018
Mar2019

So I created a python script to do it.
See combine_lines.py
Usage:
./combine_lines.py file1 file2 > file3