School ending Script

Hello beautiful people, I would like to kindly ask you to help me with my school leaving project. Unfortunatelly due to family problems I felt into trouble and I am on able to finish my project due to schedule.

I would like to ask you to review this script and give me any hints that you could. I am not usually asking others for help so I am really ashamed to do it right now, but I feel I don't have any more options.

Thank you for understanding.

Here is the script :

The script should offer a menu with the following options:

  • To create a backup copy of a script file.
    [list]
  • The name of the backup copy should have backup after the name of the script and be date stamped e.g. Ass3Script_backup_10_11_2015.
  • It should be saved to your home directory using the Environment Variable for your home directory.
  • The script should error check that the file exists and is a normal file. If this is not the case then the script should allow the user to re-enter the filename until a valid filename is entered
    [/list]
  • To create a date stamped log file called e.g. log_file_10_11_2015 containing
    [list]
  • A list of who is logged into the system,
  • The disk usage and
  • Your currently running processes.
  • The file should be saved to an existing directory called log_dir which should be situated off your home directory
    [/list]
  • To create a copy of a file.
    [list]
  • The file should be in your current directory (the name of the file to be given by the user)
  • The destination directory name to be given by the user.
  • The script should error check that the file exists and is a normal file. If this is not the case then the script should allow the user to re-enter the filename until a valid filename is entered.
  • The script should check that the destination directory exists. If this is not the case then the script should allow the user to re-enter the destination directory until a valid directory is entered.
    [/list]
  • To move the location of a file in your current directory (the name and destination to be given by the user).
    [list]
  • The script should error check that the file exists and is a normal file. If this is not the case then the script should allow the user to re-enter the filename until a valid filename is entered.
  • The script should check that the destination directory exists. If this is not the case then the script should allow the user to re-enter the destination directory until a valid directory is entered.
    [/list]

This script should loop continuously until the user chooses to quit.

I would really appreciate any kind of help you could give me.

Thank you very much in advance.

Welcome to the forum.

As much as we pity you for your problems, we have to tell you that this is not the way it works. Nobody in here will write your school leaving project / script for you. What we can do, once you followed the rules and posted your NEW thread INCLUDING your script fragments / attempts - may they work or not - in the homework / classwork forum using the correct form filled in to its entirety, is comment on your script (fragments) and ask questions that will hopefully lead you into the right direction.

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.