Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 639 Bytes

File metadata and controls

60 lines (39 loc) · 639 Bytes

Bash

Run without stop when loggin out

nohup script.sh &> /dev/null &

Or

script.sh &
disown

Functions (Check examples in kafka)

Declaration

print_debug() {
  if [[ "$VERBOSE" == "true" ]]; then
    echo -e "VERBOSE:" *?  >&2
  fi
}
multiply() {
   val="${1}"
    val=((${val}*2)) 
    echo $val
}

Call

print_debug
  v=1
  v=$(multiply ${v})

Library

Loading

source director/lib.sh

FORMAT

  • use google (with .editorconfig), 2 spacing, no tab,

Valuable refernece