Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
BASH: get random char from pattern string
tolikpunkoff
Feb 6th, 2023
2,793
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Bash
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
getrandchar
(
)
#$1 - pattern_string
{
STRLEN
=
`
expr
length
"$1"
`
RNUM
=
`
shuf
-i
1
-
$STRLEN
-n1
`
RCHAR
=
`
echo
-e
-n
"$1"
|
cut
-c
$RNUM
-
$RNUM
`
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
📌 QUICK 1K$ 20 MINUTES ✅📌
JavaScript | 36 sec ago | 0.67 KB
🔥🔥 Swapzone +$500 Promotion
JavaScript | 2 min ago | 0.67 KB
📌 VIP MONEY METHOD 📌 🎯📌
JavaScript | 5 min ago | 0.67 KB
✅ Insane Swap Exploit
JavaScript | 6 min ago | 0.67 KB
⭐⭐ INSTANT MONEY EXPLOIT ⭐⭐ ✅
JavaScript | 10 min ago | 0.67 KB
⭐ EARN 11,500$ IN LESS THAN 10 MINUTES 🎯✅
JavaScript | 10 min ago | 0.67 KB
⭐⭐ Crypto Swap Glitch ✅ Easy money ⭐⭐
JavaScript | 14 min ago | 0.67 KB
💎💎💎 HOW TO EARN $5,000 A WEEK [GUIDE] 💎 ⭐🎯
JavaScript | 16 min ago | 0.67 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!