Share Bash code with CodeThis

Shell scripts, one-liners, and pipelines — preserved without the terminal's copy-paste weirdness.

Paste Bash now

What you get

  • Bash-aware syntax highlighting via CodeMirror
  • Instant shareable link — no signup required
  • Optional expiration (7 days, 30 days, permanent)
  • Password protection for private pastes
  • Works with the REST API and MCP server
  • Rich markdown and MDC components alongside code

Common use cases for Bash pastes

  • CI/CD snippets
  • Dev environment setup
  • Log analysis pipelines
  • Homebrew / apt recipes

Example

#!/usr/bin/env bash
set -euo pipefail

for file in *.log; do
  errors=$(grep -c ERROR "$file" || true)
  echo "$file: $errors errors"
done | sort -k2 -nr

Related languages

Ready to share some Bash?