Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash log function

err() {
  echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2
}

if ! do_something; then
  err "Unable to do_something"
  exit 1
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: kali linux not signing in 
Shell :: kill background job 
Shell :: create gz in ubuntu 
Shell :: how to restore a non booting grub bootloader 
Shell :: git connect local to remote 
Shell :: flutter sdk download 
Shell :: npm install tough-cookie 
Shell :: helm commands 
Shell :: windows use lf instead of crlf 
Shell :: remove commit from PR 
Shell :: print next 10 lines after grep 
Shell :: how to use usb 3 with virtualbox 
Shell :: bash help 
Shell :: git make new branch 
Shell :: crontab view output 
Shell :: php 7.4 raspberry pi 
Shell :: git rebase a local branch into my branch 
Shell :: copy paste file terminal 
Shell :: linux ubuntu update time 
Shell :: git show whole file at commit 
Shell :: git https basic access denied 
Shell :: uncommit the last commit 
Shell :: gnu octave ubuntu 20.04 
Shell :: giphy slack 
Shell :: statsmodels logit function 
Shell :: dir command list all files and subdirectories 
Shell :: how to update git password in windows 
Shell :: remove branch git 
Shell :: how to move a file in bash 
Shell :: apache airflow docker 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =