How to write a "bash script.sh argument " : <p>hi can someone help me with this.</p>

<p>How to Write a script that takes in as argument a filename and displays its modification date and time in this way exactly :</p>

<pre><code>[user@localhost...]$ bash script.sh temp.txt
the file temp.txt was modified on May 1 20:20
</code></pre>

<p>And then modify that script in such a way that it lists the modification dates for directories whose names contain a given pattern in this way exactly :</p>

<pre><code>[user@local....]$ bash script.sh testRegex Pub
the file testRegex was modified on May 1 20:22
the directory /home/user/Public was modified on Dec 26 08:00
the directory /home/user/Pubs. was modified on May 2 20:00
</code></pre>

<p>please help I need to answer this fast</p>

<p>Thanks</p>
