Skip to content

Instantly share code, notes, and snippets.

@natebenes
Created May 24, 2011 16:05
Show Gist options
  • Save natebenes/989002 to your computer and use it in GitHub Desktop.
Save natebenes/989002 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Basic for loop in bash
site_base="http://google.com/";
site_suffix="/amazing_string";
for (( i = 1; i <= 25; i++ ))
do
wget -q -A jpg $site_base$i$site_suffix;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment