Skip to content

A bash script that saves timestamped console output

Notifications You must be signed in to change notification settings

seesleestak/lawg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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

About

A bash script that saves timestamped console output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages