Skip to content

Instantly share code, notes, and snippets.

@aliharis
Created April 17, 2016 14:58
Show Gist options
  • Save aliharis/29f9b745dc18b5d9b072e161fe1a6c8a to your computer and use it in GitHub Desktop.
Save aliharis/29f9b745dc18b5d9b072e161fe1a6c8a to your computer and use it in GitHub Desktop.
Read a text file line by line
#!/bin/bash
while IFS='' read -r line || [[ -n "$line" ]]; do
wget $line
done < "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment