Skip to content

Instantly share code, notes, and snippets.

@kapb14
Created March 10, 2016 07:40
Show Gist options
  • Select an option

  • Save kapb14/1b2ac855cbe764b20ce6 to your computer and use it in GitHub Desktop.

Select an option

Save kapb14/1b2ac855cbe764b20ce6 to your computer and use it in GitHub Desktop.
use 'read' in bash scripts
#
# http://wiki.bash-hackers.org/commands/builtin/read?s[]=read
#
> read -e -i "[txt_before]" -p "answer: " -t 10 myvariable ; echo $myvariable
answer: [txt_before]fuck
[txt_before]fuck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment