Skip to content

A simple powershell program to split the content of a single TXT file by user-defined MATCHSTRING value, and output the splits into individual TXT files.

Notifications You must be signed in to change notification settings

sherwinzxw/powershell-txt-splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PowerShell TXT file splitter

A simple powershell program to split the content of a single TXT file by user-defined MATCHSTRING value, and output the splits into individual TXT files.

Instruction

To use the program:

  • Copy and paste the content into the src/input/input.txt file
  • Open the src/txt-splitter.ps1 in a text editor, and assign the split delimiter string value to the variable $MATCHSTRING
  • Save the change, and in the command-line terminal, enter the FULL PATH of the txt-splitter.ps1 to run.
  • Once completed, you will find the outputs from the following relative path output/extraction_<yyyyMMddHHmmss>/*

About

A simple powershell program to split the content of a single TXT file by user-defined MATCHSTRING value, and output the splits into individual TXT files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published