Skip to content

Instantly share code, notes, and snippets.

@iqfareez
Last active February 15, 2023 11:06
Show Gist options
  • Save iqfareez/1ee31bd6579306a97b5e0ef90361e2a9 to your computer and use it in GitHub Desktop.
Save iqfareez/1ee31bd6579306a97b5e0ef90361e2a9 to your computer and use it in GitHub Desktop.
Example running bash script from a URL
#!/bin/bash
echo "Hello, world!"
echo "This is a test script."
echo "Thanks for running me!"
@iqfareez
Copy link
Author

To run

curl -s https://gist.githubusercontent.com/iqfareez/1ee31bd6579306a97b5e0ef90361e2a9/raw/8af49fd3a173ff91b77b67e0d477373b52d27a2e/script.sh | bash

Result

bash url script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment