title: Homework about using a file for input in bash
body: <p>So basically i have been assigned this homework in which i have to make a bash script that gets its input from a file of numbers, and exports the bigger number, the smaller number their sum and their average.</p>
  
  <p>I have tried to find a way to do this in a simple way, he told us to do it in a fashion of ./bashscript &lt; numbers.txt, however i cant seem to know how to search for that neither can i find a clear simple solution to the problem, i guess that finding the bigger and smaller number as well as the average should be simple once i get some stuff going but now i am at a loss...</p>
  
  <p>if i were to input a .txt file that had: 
  3
  4
  5
  3
  2
  1</p>
  
  <p>It should give me the greater : 5
  the smaller: 1
  the amount:6
  and an average:3</p>