title: Execute curl commands read from a file
body: <p>I have a text file which contains curl calls inside. They are all separated by new-line breaks which helps me when it comes to reading the file line by line accordingly. My problem is that I am not sure how to trigger the curl calls to execute. Right now its behavior is to print to screen like it was just another string of chars?</p>
  
  <p>Example of data.txt : </p>
  
  <pre><code>curl -X GET "https://www.google.com"
  curl -X GET "https://www.facebook.com"
  </code></pre>
  
  <p>My script : </p>
  
  <pre><code>#!/bin/sh
  IFS=$'\n'
  while read -r line
  do
      echo $line
      makingCurlCall=$(echo "$line")
      echo "$makingCurlCall"
  done &lt; "data.txt"
  </code></pre>
  
  <p>It will only give the output of the lines and not actually making the curl calls. </p>
  
  <p>Output:</p>
  
  <pre><code>curl -X GET "https://www.google.com"
  curl -X GET "https://www.google.com"
  curl -X GET "https://www.facebook.com"
  curl -X GET "https://www.facebook.com"
  </code></pre>