Skip to content
The Bash Insectarium

/static/insetario/en/raridade/incomum/

Menu

This filter is a page

Rarity: uncommon

Those who use it, use it daily; most walk right past.

13 insects on this page

  1. BSH-003 dir/{a,b,c} Nested braces and a shared prefix: a directory tree in one line. Braces uncommon
  2. BSH-005 ${var:=padrão} Like :-, but the default gets written into the variable. Parameters uncommon
  3. BSH-008 ${#var} The value's length, counted in characters, with no helper process. Parameters uncommon
  4. BSH-009 ${var#prefixo} It gnaws at the start of the value: # takes the smallest bite, ## the largest. Parameters uncommon
  5. BSH-010 ${var%sufixo} It gnaws at the end of the value: % takes the smallest bite, %% the largest. Parameters uncommon
  6. BSH-012 ${var^^} Raises or lowers the case of the whole value — or just the first letter. Parameters uncommon
  7. BSH-014 ${var:2:5} A slice of the value: it starts at the offset, measures the length. Parameters uncommon
  8. BSH-015 <(comando) A command's output dressed as a file — without touching the disk. Processes uncommon
  9. BSH-018 <<< One word becomes the command's whole input: the pocket heredoc. Documents uncommon
  10. BSH-019 $_ The previous command's last argument, kept in an underscore. Ghost variables uncommon
  11. BSH-022 $! The PID of the last process sent to the background. Ghost variables uncommon
  12. BSH-027 pushd A stack of directories: push on the way out, pop on the way back. Displacements uncommon
  13. BSH-028 shift Discards the first argument and pulls the queue one step forward. Displacements uncommon