Skip to content

Python implementation, creates .txt files from delimited file.

Notifications You must be signed in to change notification settings

RealMirage/File-Splitter-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

File-Splitter-Python

Python implementation, creates .txt files from delimited file.

This is a command line utility for taking a single input file and splitting it apart into multiple children files based on a single column. It takes in arguments in order to determine input file, delimiter, column to split on and any lines to skip in the file.

Arguments:

--help : Lists all arguments and definitions.

--input: File Path for file to split (e.g. C:\ProjectData\FileSplitter\SamplePipeFile.txt)

--delim: Input file delimiter (e.g. \t or | or ,)

--column: Column index to split on, indexed at 0.

--skip: Number of lines to skip (e.g. set to 1 if headers exist)

Example execution:

C:\Users\MyUser\AppData\Local\Programs\Python\Python36-32\python.exe C:/Users/MyUser/PythonProjects/FileSplitter/FileSplitter.py --input "C:\ProjectData\FileSplitter\SamplePipeFile.txt" --delim "|" --column 0 --skip 1

About

Python implementation, creates .txt files from delimited file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages