Skip to content

Instantly share code, notes, and snippets.

@nikp123
Created May 7, 2020 23:56
Show Gist options
  • Save nikp123/20ff3cc9e2c9b9c1014b5bb5c8734c48 to your computer and use it in GitHub Desktop.
Save nikp123/20ff3cc9e2c9b9c1014b5bb5c8734c48 to your computer and use it in GitHub Desktop.
ChatDestroyer - A script for your immoral deeds
#!/bin/sh
FILE=$1
MAX_SIZE=$2
rm x*
split -b $2 $1
sleep 1
for i in x??; do
cat $i | xclip -selection c;
sleep 1
xdotool key ctrl+v;
xdotool key Return;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment