Guest User

Untitled

a guest
Nov 22nd, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/bin/bash
  2. function goto
  3. {
  4.  local label=$1
  5.  cmd=$(sed -En "/^[[:space:]]*#[[:space:]]*$label:[[:space:]]*#/{:a;n;p;ba};" "$
  6. eval "$cmd"
  7. exit
  8. }
  9.  
  10.  
  11. # start: #
  12. read -p "Brainpass:" brainpass
  13. case $brainpass in
  14. q)
  15. goto end
  16. esac
  17. ./brain.sh "$brainpass"
  18.  
  19. goto start
  20.  
  21. # end: #
Advertisement
Add Comment
Please, Sign In to add comment