Ok, this looks like homework, so i won't solve that for you, but will give you some hints on how you can find the answer. Note however, that asking questions regarding homework assignments is generally forbidden here so you are already on a very narrow path with your question:
Consider you have you file, the content could look like
you have probably created it using vi or some other text editor, but which UNIX command do you use to display
How you get parameters from the command line into your script is part of every shell manpage, so i won't tell you here how this is done. Consider, your line is
your desired result would then be
this is my command line
You sure have heard about output redirection, yes? If not, study your book again. You'll find your answer there along with everything you need to create your script.