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"
_main -d -w " [" -r "REMOVE" -w "]" -w " Remove all disk space"
Remember!!!
- Always use double quote around string
- Change LOG_FILE variable to your log path