Created
July 25, 2018 09:24
-
-
Save adujardin/3d6df6d6a8b13002cef76108ff28cccc to your computer and use it in GitHub Desktop.
Generate random string and put them int the clipboard in a loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true | |
do | |
random_str=" $(cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 15 | head -n 1)" | |
echo $random_str | |
echo -ne " $random_str" | xclip -selection c | |
sleep 0.1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment