Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
bash [2016/02/19 12:44] steve |
bash [2016/02/24 09:28] steve |
||
---|---|---|---|
Line 13: | Line 13: | ||
* [[iterm]] | * [[iterm]] | ||
+ | * [[ftp://ftp.gnu.org/gnu/bash/]] | ||
* [[ftp://ftp.beandog.org/rsyncd/dotfiles/.bashrc.extra]] - My cross-platform ''.bashrc.extra'' :D | * [[ftp://ftp.beandog.org/rsyncd/dotfiles/.bashrc.extra]] - My cross-platform ''.bashrc.extra'' :D | ||
* [[http://www.aboutlinux.info/2005/10/10-seconds-guide-to-bash-shell.html|Bash Shell Scripting - 10 Seconds Guide]] | * [[http://www.aboutlinux.info/2005/10/10-seconds-guide-to-bash-shell.html|Bash Shell Scripting - 10 Seconds Guide]] | ||
Line 229: | Line 230: | ||
* Start of Line: Ctrl A | * Start of Line: Ctrl A | ||
* End of Line: Ctrl E | * End of Line: Ctrl E | ||
+ | |||
+ | == Check Input == | ||
+ | |||
+ | Check to see if input is an integer: | ||
+ | |||
+ | <code> | ||
+ | if [[ $1 == ?(-)+([0-9]) ]]; then echo "$1 is an integer"; fi | ||
+ | </code> |