You need to code up a bash script that will accept a directory name as its argument (eg. myscript mydirectory). Your script will then search through the directory and check for empty files (zero file size).
Though I cannot see the sense regarding this instruction : > if there > is no option on the command line, have the script deletet he file > after displaying its name, asking the user for confirmation, and > receiving positive confirmation > Delete a file if there is no option?? but the argument only accepts a directory. weird instruction.. On Sun, Oct 25, 2009 at 10:53 AM, Francis Isabel <[email protected]> wrote: > > somebody can help me explain to me this exercise > > write a shell script program that takes the name of a direcoty as an > argumen and search the file hierarchy at the directory for zero-length > file. write the name of all zero-length file to start output. if there > is no option on the command line, have the script deletet he file > after displaying its name, asking the user for confirmation, and > receiving positive confirmation > > > > -- Penguin, penguin, and more penguin. Believe that within the brain is a brain, and within it another brain, and so on and so forth. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
