Computing.Net > Forums > Unix > C Shell script help!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C Shell script help!

Reply to Message Icon

Name: Kevin C
Date: April 14, 2002 at 17:37:34 Pacific
Comment:

I need help on writing 2 shell scripts:

1) Write a shell script, to be called `keep', that will take
any number of file names as arguments. It should remove all
files from the current directory *except* for dot files and
the files whose names appear as arguments. So, for example,
after running the command

keep Makefile *.c *.h

the only files remaining in the current directory should be
Makefile and any C source or header files (plus any dot files,
which are always ignored by keep). Usage statement is expected where
user enters incomplete number of arguments.


2) Write a script that, when given a userid, reports the last 5 times the
user logged in. If no userid is provided, print a usage statement (like when
you type rm by itself, it prints a usage statement).

-can anyone help?! I'n very new to shell scripts!!



Sponsored Link
Ads by Google

Response Number 1
Name: Bernie
Date: April 14, 2002 at 17:45:37 Pacific
Reply:

Sounds like you are looking for someone to do your work...However,if you have a problem I will be glad to assist.

Let see the code & state the problem.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: C Shell script help!

C-shell script help www.computing.net/answers/unix/cshell-script-help/6828.html

C Shell Script Help www.computing.net/answers/unix/c-shell-script-help/7095.html

c shell script help PLEASE www.computing.net/answers/unix/c-shell-script-help-please/4355.html