469,279 Members | 2,216 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,279 developers. It's quick & easy.

Wrapper shell script

5
Hey my teacher has this as a question on my current lab and im having trouble on how to start it. here it is:
************************************************** ****************
Write a menu driven "wrapper" to the FIND command. It should walk the user through using the command, asking the user the following questions(in this order)
what directory to start in?
what criteria to use to search for files
1. by name
2. by owner
what action to perform on each file(these are options tot eh find command)
1. print
2. ls
3. execute a command

if #3 is chosen, allow the user to enter the command to run on the file

once all the information has been gathered, form the proper FIND command and execute it. display the results of the command to the screen. use the man page ont he find command to determine which options to use.

************************************************** **************

Any help will be great, thanks.
Feb 17 '08 #1
1 2620
numberwhun
3,503 Expert Mod 2GB
Hey my teacher has this as a question on my current lab and im having trouble on how to start it. here it is:
************************************************** ****************
Write a menu driven "wrapper" to the FIND command. It should walk the user through using the command, asking the user the following questions(in this order)
what directory to start in?
what criteria to use to search for files
1. by name
2. by owner
what action to perform on each file(these are options tot eh find command)
1. print
2. ls
3. execute a command

if #3 is chosen, allow the user to enter the command to run on the file

once all the information has been gathered, form the proper FIND command and execute it. display the results of the command to the screen. use the man page ont he find command to determine which options to use.

************************************************** **************

Any help will be great, thanks.
That all actually sounds pretty simple. I would read your book and try to figure it out. If you get stuck, post your code here, but we cannot do your homework for you. Its against site policy.

Regards,

Jeff
Feb 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Nilsson Mats | last post: by
8 posts views Thread by Seth7TS | last post: by
5 posts views Thread by Hul Tytus | last post: by
5 posts views Thread by inetquestion | last post: by
4 posts views Thread by devi thapa | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.