|  |  | 
| EnderUNIX tipsMail to My Friend , Home Page[ Shell Scripting ] "CLEANING DIRECTORIES" - Ülkü SAYILAN - (2003-12-10 06:24:17) [2371] CLEANING DIRECTORIES The creation of many temporary files in Unix during compilations, occupies a lot of memory space. This can be got rid of by using a simple script. find $1 \( -name a.out -o -name '*.o' -o -name 'core' -o -name '*.ii' -o -name '*.ti' -o -name '*.class' -o -name '*.pur' \) -exec rm {} \; Save the above line in a file and run this file after changing permissions. For example, if the file containing the above code has the name 'clean', then: example% clean will remove all the files specified in the script in the directory and all other subdirectories within it. You can add or remove any number of files in the script, to suit your needs. Mail to My Friend , Home Page |  |