Created
March 10, 2016 07:40
-
-
Save kapb14/1b2ac855cbe764b20ce6 to your computer and use it in GitHub Desktop.
use 'read' in bash scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # 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