I have a file called installer.txt which will contain a line by line of URLs of .tar.gz files like:
http://oscargodson.com/projects/example1.tar.gz http://oscargodson.com/projects/anotherexample.tar.gz http://oscargodson.com/projects/onemore.tar.gz And I tried:
#!/bin/bash file = `cat installs.txt` for word in file; do echo $word done But my output is like:
Oscars-MacBook-Air:Desktop oscargodson$ ./test.sh =: cannot open `=' (No such file or directory) http://oscargodson.com/projects/example1.tar.gz: cannot open `http://oscargodson.com/projects/example1.tar.gz' (No such file or directory) http://oscargodson.com/projects/anotherexample.tar.gz: cannot open `http://oscargodson.com/projects/anotherexample.tar.gz' (No such file or directory) http://oscargodson.com/projects/onemore.tar.gz: cannot open `http://oscargodson.com/projects/onemore.tar.gz' (No such file or directory) file It should output each line, or, so i thought. Ideas?