nsv-cli 0.0.5

Command-line tool for the NSV (Newline-Separated Values) format
nsv-cli-0.0.5 is not a library.

NSV, CLI tool

Command-line tool for the NSV (Newline-Separated Values) format.

Installation

To install (or update) from crates.io, run

cargo install nsv-cli

Usage

nsv help     # proper summary
nsv version  # this tool + underlying parser's versions

Sanitize

Clean up files corrupted by Microsoft's software.

# From file
nsv sanitize dirty.nsv > clean.nsv

# From stdin
cat dirty.nsv | nsv sanitize > clean.nsv

The sanitize command:

  • Strips UTF-8 BOM
  • Normalizes CRLF to LF
  • Errors on bare CR or mixed line endings
  • NSV-agnostic, can be used on any text file