Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
bash [2016/02/19 13:17]
steve
bash [2016/02/24 09:28]
steve
Line 230: 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>​