EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ Shell Scripting ]

"Remove Just The Files" - Ülkü SAYILAN - (2004-07-13 20:12:31)   [4687]

Remove Just The Files

To removal only the files (not subdirectories) in
the current directory, use the following command:

rm `ls -l | grep -v '^d' | awk '{ print $9 }'`

Mail to My Friend , Home Page