tar-append

command module
v0.0.0-...-a0978a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2017 License: MIT Imports: 7 Imported by: 0

README

tar-append

A native Go CLI tool for appending files to the end of a tar received via stdin and sent to stdout.

Notes

  1. tar-append only appends files to the end of the input archive which is marked by a closed/detached STDIN
  2. tar-append will only append files at or below the current working directory.
  3. tar-append will only append a single file (the first argument to the program).
  4. tar-append will append files with names that already exist in the archive - this is purposeful.
  5. tar-append only writes the tarball to STDOUT. Error messages will be sent on STDERR.

Examples

mkdir logs
tar cf - 1.txt 2.txt | tar-append 3.txt | tar-append 4.txt | tar xf - -C ./logs
ls ./logs
# 1.txt   2.txt   3.txt   4.txt 
  1. Jeff Nickoloff "jeff@allingeek.com"
License

This project is released under the MIT license.

Documentation

Overview

Copyright 2017 Jeff Nickoloff. All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL