Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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 commandkeep 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!!

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.

![]() |
![]() |
![]() |

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