Home > Archive > alt.os.linux > November 2002 > Re: BASH programming help





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: BASH programming help
Chris F.A. Johnson

2002-11-28, 2:24 am

On Thu, 28 Nov 2002 at 07:21 GMT, Ralph B. Hetzel wrote:
> Hi
> I am working on a project and was wondering if you could help me


What part of your homework are you having problems with?

What have you tried so far?


> Create a shell script to do the following...


[assignment snipped]

--
Chris F.A. Johnson bq933@torfree.net
==============================
==============================
=====
c.f.a.johnson@rogers.com http://cfaj.freeshell.org
cfaj@freeshell.org http://members.rogers.com/c.f.a.johnson
Michael Heiming

2002-11-28, 2:24 am

Ralph B. Hetzel wrote:

> Hi
> I am working on a project and was wondering if you could help me
> Create a shell script to do the following...
>
> 1. Allow the user to include the following items on the command line
> as paramters: directory_containing_the_progr
am version_number.
> If the user specifies more than two parameters, print an error
> message. The user should be able to execute the script as
> follows: './myscript my_dir 1.0.3

[..]

Sounds like homework, could you post what you allready have?
I'm sure someone can help, but we don't do complete homework here.

Michael Heiming
--
Remove +SIGNS, if you expect an answer
Paul Lutus

2002-11-28, 2:24 am

On Thu, 28 Nov 2002 07:21:52 +0000, Ralph B. Hetzel wrote:

> Hi
> I am working on a project and was wondering if you could help me
> Create a shell script to do the following...
>
> 1. Allow the user to include the following items on the command line
> as paramters: directory_containing_the_progr
am version_number. If
> the user specifies more than two parameters, print an error
> message. The user should be able to execute the script as follows:
> './myscript my_dir 1.0.3
>
> 2. If the user does not specify both parameters or only specifies the
> first parameter, prompt for the remaining parameters.
>
>
> 3. Ensure that the directory specified exists and print an error
> message and exit if it does not.
>
> 4. Copy the directory specified to a temp directory that is the
> directory name plus the version number. Before copying the file,
> make sure the destination directory does not exist. If it does,
> print an error and exit.
>
> 5. Use tar to create a .tgz file containing the directory that is
> named with the directory name, the version number and tgz. An
> example of a proper filename is my_dir.1.0.3.tgz
>
> 6. Remove the temporary directory.
>
> 7. Print a comforting message like "thanks for playing" or "have a nice
> day".
>
> 8. Exit.


Post your work, not just your assignment. Usenet is not a homework
completion machine.

--
Paul Lutus
www.arachnoid.com


Brian Patil

2002-11-28, 4:24 am

Sorry, I am too busy doing my homework right now.

I suggest you do your own homework and learn something at the
same time.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net