airpaste
Share text between computers via network
TLDR
Wait for a message and display it when received
Send text
Send a file
Receive a file
Create or join a channel
SYNOPSIS
airpaste [-s lang| --syntax lang] [-r| --raw] [-H| --headers] [-h| --help] [-v| --version] [FILE]
PARAMETERS
-s, --syntax lang
Enable syntax highlighting. Default: text. Languages: bash c cpp css go html json js md py rust sh toml xml yaml
-r, --raw
Upload raw text (no syntax highlighting)
-H, --headers
Print HTTP response headers
-h, --help
Display usage help and exit
-v, --version
Show version information
DESCRIPTION
airpaste is a lightweight, portable shell script for quickly uploading text, code snippets, or logs from the Linux terminal to a remote paste service, generating a public shareable URL. Developed for simplicity, it requires only standard tools like curl, sed, and grep, making it ideal for servers or minimal environments.
Usage is straightforward: pipe content via stdin (echo 'code' | airpaste) or specify a file. It supports syntax highlighting for popular languages, enhancing readability on the paste site. The upload goes to paste.nroot.de, which provides temporary public pastes.
Key benefits:
- Minimal dependencies.
- Syntax support: bash, c, cpp, css, go, html, json, js, md, py, rust, sh, toml, xml, yaml.
- Raw mode for plain text.
- Fast and script-friendly.
Perfect for debugging, sharing configs, or collaborating without GUI tools. Note: pastes are public and expire (check service policy).
CAVEATS
Requires internet and curl. Pastes are public; no authentication or privacy. Expiration depends on paste.nroot.de policy (typically temporary). Reads stdin if no FILE.
INPUT HANDLING
Use stdin for piped input (cat file.txt | airpaste) or specify file directly (airpaste file.txt).
EXAMPLE USAGE
echo 'print(42)' | airpaste -s py
Outputs: https://paste.nroot.de/ABC123
curl -s ifconfig.me | airpaste -r
HISTORY
Open-source shell script by nroot (@nrootconauto), released on GitHub in 2020. Minimalist design for portability across Unix-like systems. Actively maintained with focus on core functionality.


