Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 648 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 648 Bytes

lawg

A bash script that saves timestamped console output to a namespaced directory. It uses tee to read from stdin and write to the file.

Installation

Save script to somewhere in your $PATH.

Usage

cat /lots/of/output | lawg output-name

lawg allows you to run the same command many times while saving all the console output to a directory with your output-name namespace. Each file generated is timestamped.

By default, the output is put in your /tmp directory. That can be modified by providing an alternate directory path with the -d flag:

cat /lots/of/output | lawg output-name -d ~/Documents