bash_library.sh 266B

123456789101112131415
  1. #!/bin/bash
  2. YELLOW='\033[1;33m'
  3. BROWN='\033[0;33m'
  4. GREEN='\033[1;32m'
  5. NC='\033[0m' # No Color
  6. function log {
  7. echo -e "\n${YELLOW}[$(date +'%H:%M:%S')]${BROWN} $ $1${NC}"
  8. }
  9. function loggood {
  10. echo -e "\n${YELLOW}[$(date +'%H:%M:%S')]${GREEN} $ $1${NC}"
  11. }