title: Sublime Build system for c++ in linux allowing input from file
body: <p>I am using sublime in linux I am trying to compile and run my c++ program from sublime directly with INPUT taken from a file rather than STDIN.<br>
  Please help me with the code to be written in sublime build-file.<br>
  I got this code but its not working i think its for windows not for linux:</p>
  
  <pre><code>{
      "cmd" : ["g++", "$file_name", "-o", "${file_base_name}.exe"],
      "selector" : "source.c",
      "shell":true,
      "working_dir" : "$file_path",
      "variants": [
          {   
              "cmd": ["${file_base_name}" , "&lt;" , "input.txt"],
              "shell": true,
              "name": "Run",
              "working_dir" : "$file_path"
          }
      ]
  }
  </code></pre>