Wrapper shell script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrw133
    New Member
    • Jan 2008
    • 5

    Wrapper shell script

    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.
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Originally posted by jrw133
    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

    Comment

    Working...