Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 352 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 352 Bytes

Bash

In addition to shell best practices:

  • Prefer ${var,,} and ${var^^} over tr for changing case.
  • Prefer ${var//from/to} over sed for simple string replacements.
  • Prefer [[ over test or [.
  • Prefer process substitution over a pipe in while read loops.
  • Use (( or let, not $(( when you don't need the result