Skip to content

Instantly share code, notes, and snippets.

@jonathanconway
Created May 17, 2017 05:32
Show Gist options
  • Save jonathanconway/f0dea3afede46624618b84842e4decec to your computer and use it in GitHub Desktop.
Save jonathanconway/f0dea3afede46624618b84842e4decec to your computer and use it in GitHub Desktop.
Generate an executable bash script
#!/bin/bash
echo #!/bin/bash > $0
chmod u+x $0 # set permissions so that it's to be executable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment