Skip to content

Instantly share code, notes, and snippets.

@wcoder
Created November 8, 2014 13:04
Show Gist options
  • Save wcoder/06a1d334986f07a94356 to your computer and use it in GitHub Desktop.
Save wcoder/06a1d334986f07a94356 to your computer and use it in GitHub Desktop.
Bash-script to cheat counter views.
#!/bin/bash
echo "Page URL:"
read URL
echo "How many times do we see:"
read NUMBER
mkdir /tmp/cheet_views
cd /tmp/cheet_views
for (( i=0; $i<"$NUMBER"; i++ ));
do
wget -nv "$URL"
done
rm -r /tmp/cheet_views
echo "Page $URL viewed $NUMBER times!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment