Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
integer-number-check-in-bash-variables-1
tolikpunkoff
Aug 29th, 2016
768
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Bash
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/bin/bash
#check integer positive numbers in bash variables
if
(
echo
"$1"
|
grep
-E
-q
"^?[0-9]+$"
)
;
then
echo
"Number"
else
echo
"Not Number"
fi
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐⭐
Java | 4 sec ago | 0.08 KB
⭐⭐⭐Make $1500 in 20 minutes⭐⭐⭐
Java | 4 sec ago | 0.08 KB
⭐ MAKE $90O INSTANTLY⭐⭐ 7
JavaScript | 5 sec ago | 0.31 KB
⭐⭐⭐MAKE $900 INSTANTLY⭐⭐⭐
Java | 10 sec ago | 0.06 KB
⭐Crypto Exchange Profit Method⭐⭐ J
JavaScript | 11 sec ago | 0.31 KB
⭐⭐⭐Profit Method⭐⭐⭐
Java | 14 sec ago | 0.08 KB
⭐⭐⭐Exchange Exploit⭐⭐⭐
Java | 14 sec ago | 0.06 KB
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐⭐
Java | 15 sec ago | 0.06 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!