fcc
fcc
is a command line utility for file concatenation (with some advanced options). Besides, it also provides a library that exposes the same functionality at the command line.
By default, fcc
reads input files from <STDIN>
and writes the concatenation result to <STDOUT>
. You can alter this behaviour by passing command line arguments. When concatenating, you can skip lines from either start or end, enforce the presence of end-of-file newline, and etc.
See fcc --help
for more help information on how to use this command line utility.
Example of command line utility
Assumes we have three tabular csv files that contain identical headers. We want to join all the contents of them and preserve only one header (-H). Meanwhile, we want to make sure all files should end with a newline (-n).
|
or
|
or
will print the following to stdout
(header)
(contents of 1.csv)
(contents of 2.csv)
(contents of 3.csv)
Documentation
For detailed documentation on how to use fcc
as a library, see https://docs.rs/fcc.
Installation
Binaries for Windows, Linux and macOS are available from Github.
You can also compile the binary from source using Cargo:
Compilation will probably take a few minutes depending on your machine. The
binary will end up in ./target/release/fcc
.
License
fcc
is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See the LICENSE-APACHE and LICENSE-MIT files in this repository for more information.