Tips and Tricks

Remove all the directories in a directory

for i in `ls -1` ; do if [ -d  $i ] ; then  echo "removing $i" ; rm -rf $i; fi ;  done