UTOSC Day 2: CLI Judo

Today started off with a great presentation from Derek Carter from Coraid on Bash scripting. I'm an old hat at Bash, and even I learned a few things. This was certainly a popular topic as evidenced by the overflowing room. Derek did not disappoint. Particularly I'm excited by pv, pbcopy/pbpaste, todo.sh, [[]], zenity.

Miscellaneous Notes:

  • Sponsored by Coraid
  • variables: RANDOM, PS1, PS2
  • DOOD=${RANDOM}
  • let "DOOD %= 500"
  • PS2 shows up when you leave a quote open (default '> ')
  • tmux - like screen, but re-imagined
  • byobu - superdooper screen customizer
  • pv - progress bar in terminal. uses stdin stdout
  • todo.sh - todotxt.com
  • mkcd () { mkdir -p -- "$@" && cd -- "$@" }
  • pathmunge - redhatism
  • .inputrc - bind keys to inputs - look for readline in bash manpage
  • bti - bash twitter idiocy. bash twitter client
  • PROMPT_COMMAND - runs every time you get a command
  • if [[ ]] - double brackets? - bash builtin instead of tests
  • if then : - colon is placeholder
  • macosx bash tools - sounds cool
  • pbcopy/pbpaste would be handy
  • xyzzy - record bash sessions
  • terminator - gnome-terminal splittable
  • trap - trap kill signals to a function
  • dialog - read input via curses. gets very complex. uses temp files.
  • zenity - gtk-based dialog. can run as subshell.
  • kdialog - kde-based dialog
  • stringent.sh - variable typing

tags: 

Subscribe to Comments for "UTOSC Day 2: CLI Judo" Subscribe to zmonkey.org - All comments