Need help with these scripts in nano...

So I am trying to write 3 different scripts using nano. Having some trouble with each.

The first one is prompting for the person's information, and I would like to store that information in a new text file. I have most of it complete. The only problem I have here is that I do not know the code to send all of the information to the new text file.

The second one I want to remove all HTML tags from a document, as well as duplicate lines.

The third script I have a list of states, their land area and population. I need it to ask the person if they would like to have a new file sorted alphabetically by state name, by land area or by population. They can choose 1, 2, or 3. Depending on what they choose, I need to output their choice to a new text file.

I sort of have a grasp on what to do for these scripts but I need a little help on each one. Any help would be appreciated.

Is this homework?

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.