This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@JBCLAMP001 ~]# array+=('three') | |
[root@JBCLAMP001 ~]# echo ${array[@]} | |
zero one two three | |
[root@JBCLAMP001 ~]# array+='four' | |
[root@JBCLAMP001 ~]# echo ${array[@]} | |
zerofour one two three |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash - | |
#set -x | |
# | |
# Copyright (c) 2017 Joyent Inc. | |
# | |
# This script will convert times from one timezone to another. | |
# | |
# Author: Jesse Butryn <jesse.butryn@joyent.com> | |
# | |
# 10/14/2017 - Initial draft. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/local/bin/bash - | |
# | |
TXT_BLD=$(tput bold) | |
TXT_YLW=$(tput setaf 3) | |
TXT_RED=$(tput setaf 1) | |
TXT_GRN=$(tput setaf 2) | |
TXT_WARN="${TXT_BLD}${TXT_YLW}" | |
TXT_ERR="${TXT_BLD}${TXT_RED}" | |
TXT_OKAY="${TXT_BLD}${TXT_GRN}" | |
TXT_RST=$(tput sgr0) |
NewerOlder