test.txt has four urls in it.
urls.sh: cat test.txt | xargs -n 1
check.sh uses command-line arguments for its url variable.
In Terminal, what do I write so that all the urls can be checked with check.sh using the urls.sh? Like if I say, ./check.sh http://www.cnn.com the bash script works perfectly.
I've tried:
./check.sh ./urls.sh
./check.sh | ./urls.sh
./urls.sh | ./check.sh