temprs 0.2.8

A temporary file manager with stack mechanism
temprs-0.2.8 is not a library.
Visit the last successful build: temprs-2.9.9

temprs - A temporary file stack manager in Rust

temprs on Crates.io

Install

cargo install temprs

Usage

  • read stdin into new tempfile on top of stack and contents to stdout cmd | tp

  • contents of tempfile on top of stack to stdout tp | nl

  • read stdin into tempfile at index 1 and write to stdout ls | tp -i 1

  • output tempfile at index 1 to stdout tp -o 1 | nl

  • read from file and create tempfile on top of stack with contents of file. write contents of to nl. tp <file> | nl

  • write contents of file to tempfile 1 then write to stdout tp -i 1 <file> | nl

  • read from stdin to tempfile 1 then write to stdout ls | tp -i 1 | nl

  • choose input tempfile and write to tempfile at index 2 and stdout ls | tp -i 2

  • choose output tempfile and write to stdout tp -o 1 | nl

  • list all tempfiles on the stack to stdout tp -l

  • list all tempfiles with contents on the stack to stdout tp -L

  • remove all tempfiles tp -c

  • remove tempfile at INDEX tp -r INDEX

  • remove tempfile at top of stack tp -p

  • remove tempfile at bottom of stack tp -s

Notes

Temporary files are numbered with ascending order. The highest numbered tempfile is the top of the stack and tempfile 1 is at the bottom of the stack.

tp and temprs binaries are installed.

created by MenkeTechnologies