By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,822 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,822 IT Pros & Developers. It's quick & easy.

Wrapper shell script

P: 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
Share this Question
Share on Google+
1 Reply

numberwhun
Expert Mod 2.5K+
P: 3,503
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.