Bash Paste
Paste Bash and Shell Scripts with Highlighting
Share Bash / shell scripts with syntax highlighting. Great for one-liners, install instructions, debug commands.
Shell is the language people share in the most hostile places: a Slack DM that turns $VAR into a mention, a wiki that smart-quotes your " and ' so the command no longer runs, an email that wraps a long find ... -exec across lines and breaks it. cdn22.net gives you a paste link that renders Bash, sh, and zsh through highlight.js with the dangerous details intact — variable expansions, single vs double quoting, pipes and redirects, command substitution, heredocs, and # comments all keep their exact characters and pick up readable coloring.
The coloring earns its keep on the things that bite: spotting that a glob isn't quoted, that a $(...) is nested wrong, that a heredoc delimiter doesn't match, or that someone used == where = belongs in [ ]. A one-liner you're handing to a teammate, an install sequence for a README, a reproduction of a flaky CI step, a set -euo pipefail script you want reviewed — each reads clearly on the paste page and survives copy-paste into the recipient's terminal exactly as you wrote it.
The paste view is an HTML page, not raw script text. Do not pipe its URL into a shell. Use the Raw button on the paste page to get the script as text/plain. The raw endpoint is on https://api.cdn22.net at /paste/<id>/raw, replacing <id> with the paste ID. Download the script and inspect it before running it. A raw response does not mean the script is trustworthy or safe to execute.
A separately hosted file is an option for file delivery through the upload API, not a requirement for raw paste access. Raw access follows the paste's expiry and availability.
No account is needed to create or read. Anonymous pastes hold 100KB and expire after 24 hours, which suits a short-lived script review. Sign in for 1MB and a choice of expiry up to permanent, so a documented install snippet keeps resolving. Compared to a Slack code block — invisible outside your workspace, gone with the scrollback — or a Gist that demands a login to post, a paste link opens for anyone and renders the script faithfully.
Benefits With No Complexity
Global CDN delivery
Edge-cached worldwide
Signed-URL security
What You Get
Unlimited files
Unlimited storage
Public + Private storage
CDN ready links
Prepaid credits
More coming soon
How cdn22.net Works
1. Upload
2. Copy
3. Use Anywhere
Why Developers Choose cdn22.net
A Better Way to Store & Deliver Files
| GitHub Gist | Slack code block | Pastebin.com | cdn22.net | |
|---|---|---|---|---|
| Variables, quoting, heredocs highlighted | ||||
| Create + read with no signup | ||||
| Link opens outside your team | ||||
| Choose expiry (1h to permanent) | ||||
| Optional file hosting for script delivery |
Calculate Your Needs
Storage
Egress
CDN Bandwidth
Need storage, egress, and request fees broken out — and compared against AWS list price for the same bytes? Use the CDN & storage cost calculator.
Paste Bash Scripts
- Global CDN delivery
- Edge-cached worldwide
- Signed-URL security
- Unlimited files
- Unlimited storage
- Public + Private storage
- No subscription — prepaid credits keep spend predictable