1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh cd output for d in *; do if [ -L "$d" ]; then continue fi if [ "$d" == "robots.txt" ]; then continue fi echo $d rm -r "$d" done