Write a script that takes the name of a directory as an argument and searches the file hierarchy rooted at that directory for zero-length files. Write the names of all zero-length files to standard output. If there is no option on the command line, have the script delete the file after displaying its name, asking the user for confirmation, and receiving positive confirmation. A –f (force) option on the command line indicates that the script should display the filename but not ask for confirmation before deleting the file.
What will be an ideal response?
The following script segment deletes only ordinary files, not directories. As
always, you must specify a shell and check the arguments.
You might also like to view...
Modify lu from Chapter 6 to use printf to print the name and phone number so that they line up in columns for names up to 40 characters in length (Hint: use cut –f and the fact that the fields in the phonebook are separated by tabs).
What will be an ideal response?
You can format one or more characters in a document to change text colors, fonts, and sizes.
Answer the following statement true (T) or false (F)
When using the Snipping Tool, you can draw an irregular line such as a circle around an area of the screen called a(n) ________
Fill in the blank(s) with correct word
Which of the following is TRUE regarding the AutoNumber data type?
A) An AutoNumber is a field added to a table to serve as a foreign key that is unique and sequential when records are created. B) A random AutoNumber is the most common and is the default setting in Access when selecting the AutoNumber data type. C) A sequential AutoNumber will generate a random number that is unique to each record within the table. D) AutoNumbers are a great method for ensuring that records are uniquely identified.