January 2004
Intermediate to advanced
368 pages
7h 25m
English
Now that a directory of deleted files and directories is hidden within the user's account home, a script to let the user pick and choose between these deleted files would clearly be useful. However, it's quite a task to address all the possible situations, ranging from no matches to one match to more than one match. In the case of more than one match, for example, do you automatically pick the newest file to undelete? Indicate how many matches there are and quit? Present data on the different versions and let the user pick? Let's see what we can do. . . .
#!/bin/sh # unrm - Searches the deleted files archive for the specified file or directory. # If there is more than one matching result, ...
Read now
Unlock full access