Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

file-split

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-split

Cuts a input stream (e.g. file) in multiple files

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

file-split

Commandline tool for splitting a file into multiple files based on a given delemiter.

Installation

npm install -g file-split

Usage

Usage:
  file-split [OPTIONS] [ARGS]

Options:
  -d, --delimiter STRING Delimiter for file split
  -o, --directory PATH   Output directory
  -p, --prefix STRING    File output prefix
  -c, --encoding [STRING]Output file encoding (Default is utf8)
  -e, --extension STRING Output file extension
  -h, --help             Display help and usage details

Only the delemiter is mandatory, the rest is optional.

Example

file-split --delimiter=";" --prefix="row" --directory="rows" --extension=".csv" < test.csv

This would create in the folder relative to your current location a directory called rowscontaining a numbered list of files, e.g.: row_01.csv

FAQs

Package last updated on 28 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc