Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
bash [2016/02/18 16:56] steve |
bash [2020/09/08 23:18] 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 | ||
* [[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]] | ||
* [[http://tille.garrels.be/training/bash/ch07.html|Conditional statements]] | * [[http://tille.garrels.be/training/bash/ch07.html|Conditional statements]] | ||
Line 25: | Line 27: | ||
* [[http://redsymbol.net/articles/unofficial-bash-strict-mode/|Use the Unofficial Bash Strict Mode (Unless You Looove Debugging)]] - strict mode to help find bugs | * [[http://redsymbol.net/articles/unofficial-bash-strict-mode/|Use the Unofficial Bash Strict Mode (Unless You Looove Debugging)]] - strict mode to help find bugs | ||
* [[http://ascii-table.com/ansi-escape-sequences-vt-100.php|ANSI Escape Sequences]] | * [[http://ascii-table.com/ansi-escape-sequences-vt-100.php|ANSI Escape Sequences]] | ||
+ | * [[https://mywiki.wooledge.org/BashPitfalls|Bash Pitfalls]] | ||
== String Operators == | == String Operators == | ||
Line 228: | Line 231: | ||
* 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> |