title: Write a script that prints from a dir k strokes sorted by date
body: <p>I have a directory "Main Dir" and I want to write a script, which will get 2 parameters: sorted_by_date  , that will find in the directory the id-worker directory (it does exist) and in it, from a file called "sent.txt", it will print results-num (an integer) strokes sorted by date. </p>
  
  <p>I'm a begginer in bash (have knowledge and skills mainly in C), and I stil didn't saw how to write scripts, but I've tried to do something from a little commands I learned and from a little search in the internet. </p>
  
  <p>Can somebody help a newbie like me in my first script-writing ? </p>
  
  <p>I'll paste here my first try: </p>
  
  <pre><code>#!/bin/bash
  
  id_worker = "$1" 
  results_num = "$2"
  sort -k3 -t  "./Main Dir/id_worker/sent.text"
  head -n+3 $results_num 
  </code></pre>