GNU Bash 5.2

Online Bash & Shell Playground

Test Unix shell scripts, loops, piping, sed, awk and terminal command workflows. Write code with auto-formatting, test with standard input (stdin), and inspect terminal output in real-time.

✓ POSIX and Bash shell scripts✓ Pipes and standard I/O redirection✓ Arrays, loops, and parameter expansions✓ Text stream filtering
script.sh
GNU Bash 5.2
13px
Standard Input (stdin)
Passed to scanf, input(), cin, etc.
UTF-8Bash2 SpacesWrap: Off
Ctrl+Enter to Run
Ln 1, Col 120 lines431 chars
Output & ConsoleIdle

Ready to Compile & Run

Click the blue ▶ Run button in the header bar or press Ctrl + Enter to compile and execute your Online Bash & Shell Playground.

How to Run Bash Code Online

Develop, test, and validate Bash scripts and command automation workflows.

  1. Write shell script with #!/usr/bin/env bash, press "▶ Run".

Common Errors & Troubleshooting

Encountering compilation or runtime diagnostics? Check these common scenarios:

command not foundEnsure commands are valid Unix shell utilities.

Related Shell & Automation Playgrounds

View all 35+ compilers →
PowerShell.ps1

Run PowerShell scripts, test pipelines, objects and command line automation

Frequently Asked Questions (Bash)

Yes, data entered in the Stdin drawer is streamed directly to stdin.