Enter the following script named savefiles, and give yourself execute permission to the file:





a. Which error message do you receive when you execute this script?

Rewrite the script so that the error does not occur, making sure the output

still goes to savethem.

b. What might be a problem with running this script twice in the same

directory? Discuss a solution to this problem.

a. You receive the following error message:
cat: savethem: input file is output file
b. Each time you run savefiles, it overwrites the savethem file with the cur-
rent contents of the working directory. When you remove a file and run
savefiles again, that file will no longer be in savethem. If you want to keep
an archive of files in the working directory, you need to save the files to
a new file each time you run savefiles. If you prefix the filename savethem
with $$, you will have a unique filename each time you run savefiles.

Computer Science & Information Technology

You might also like to view...

The Caption property is used to give a name to fields used on forms and reports

Indicate whether the statement is true or false

Computer Science & Information Technology

Elliptic curve cryptography and the _________ are two cryptographic algorithms that rely heavily on properties of finite fields.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology