Skip to content

Instantly share code, notes, and snippets.

@adujardin
Created July 25, 2018 09:24
Show Gist options
  • Save adujardin/3d6df6d6a8b13002cef76108ff28cccc to your computer and use it in GitHub Desktop.
Save adujardin/3d6df6d6a8b13002cef76108ff28cccc to your computer and use it in GitHub Desktop.
Generate random string and put them int the clipboard in a loop
#!/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