
Free online editor where you can write Bash scripts, run them, take notes, and export to PDF
Built an online editor that supports writing and executing Bash scripts directly in the browser. Useful if you want to combine runnable code with your own notes in one document.
Try it: https://8gwifi.org/math/editor.jsp
What it does:
- Write Bash scripts in runnable code blocks — select Bash from the dropdown or let it auto-detect
- Click Run (or Ctrl+Enter) to execute and see stdout/stderr inline
- Stdin input toggle for scripts that use
read - Mix code blocks with formatted text, headings, tables, and diagrams
- Export the whole document as PDF or LaTeX
- Share documents via link (public, unlisted, or private)
- Auto-saves to your browser
Good for:
- Building a Bash cheat sheet with runnable examples you can actually test
- Learning string manipulation, arrays, pipes, awk, sed — run each snippet as you go
- Creating DevOps runbooks that mix documentation with executable commands
- Sharing tutorials or study notes with teammates
Example topics covered in a single document:
- Variables and quoting (
$var,${var}, single vs double quotes) - Conditionals and loops (
if/elif/else,for,while) - Functions with arguments and return values
- String operations (
${#str},${str^^},${str/old/new}) - Arrays and slicing
- Pipes and text processing (
grep,sort,awk) - Reading stdin with
read
Try it: https://8gwifi.org/math/editor.jsp
Insert a code block from the toolbar (the </> button) or type / and select "Code Block". Pick Bash from the language dropdown and start scripting.
No signup required. Free.