Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.14 KB | None | 0 0
  1. host=133.3.147.8
  2. ask_user(){
  3.     read -p "$1($2): " input
  4.     if [[ $input ]]; then
  5.         $2=$input
  6.         unset input
  7.     fi
  8. }
  9. ask_user "Host" host
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement