mbrother2 / show_write_log

Simple sh script to show & write log to file with color

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

show_write_log

Simple sh script to show & write log to file with color

OS Support

  • CentOS
  • Debian
  • Ubuntu
  • Fedora

How to use

Options:

-d Show date

-r "STRING" Show string with red color

-g "STRING" Show string with green color

-y "STRING" Show string with yellow color

-w "STRING" Show string with white color

Examples:

_main -d -r " 1" -g " 2" -y " 3" -w " 7"

example1

_main -d -w " [" -r "REMOVE" -w "]" -w " Remove all disk space"

exmaple2

Remember!!!

  • Always use double quote around string
  • Change LOG_FILE variable to your log path

About

Simple sh script to show & write log to file with color

License:MIT License


Languages

Language:Shell 100.0%