To removal only the files
(not subdirectories) in
the current directory, use
the following command:
rm `ls -l | grep -v '^d' | awk '{ print $9 }'`
This tip generously supported by: rrs@assc.com.ve NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.