View Single Post
  #5   (View Single Post)  
Old 3rd January 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Code:
#!/bin/sh
cd $DIR
rm -rf * .* 2> /dev/null
Completely untested. The intent is to delete all regular and all dot files, suppressing the stderr message complaining about "." and ".." not being deleted.
Reply With Quote