Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
integer-number-check-in-bash-variables-1
tolikpunkoff
Aug 29th, 2016
751
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 minutes 2
JavaScript | 1 sec ago | 0.32 KB
ChangeNOW Bug (Get more on BTC swaps)
JavaScript | 5 sec ago | 0.32 KB
Swapzone Glitch (Working)⭐ A
JavaScript | 10 sec ago | 0.32 KB
⭐ Free ETH Method ⭐
JavaScript | 12 sec ago | 0.32 KB
Free Crypto Method (NEVER SEEN BEFORE)
JavaScript | 21 sec ago | 0.32 KB
✅ MAKE $9OO INSTANTLY 3
JavaScript | 21 sec ago | 0.32 KB
✅ Exploit 500$ in 15 Minutes
JavaScript | 28 sec ago | 0.32 KB
⭐Crypto Exchange Profit Method⭐ E
JavaScript | 31 sec ago | 0.32 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!