dmptmp

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 7 Imported by: 0

README

dmptmp

dmptmp creates a tempfile and writes stdin to it.

Installation

go install github.com/broothie/dmptmp

Usage

$ echo Hello, World | dmptmp
/var/folders/p_/hbkf2rp10v983_x34cw14svr0000gn/T/4020381166

$ cat /var/folders/p_/hbkf2rp10v983_x34cw14svr0000gn/T/4020381166
Hello, World
Help
$ dmptmp -h
dmptmp

dmptmp creates a new temporary file in the directory --dir.
The filename is generated by taking --pattern and adding a random string to the end.
If pattern includes a "*", the random string replaces the last "*".
If dir is the empty string, dmptmp uses the default directory for temporary files.

Usage of dmptmp:
  -dir string
    	Directory in which to create temp file
  -pattern string
    	Pattern for constructing filename

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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