#!/bin/sh # remove skeleton **files** if ! [ "$UID" = "0" ]; then echo "not root" exit 1 fi echo "WARNING; this will remove neb's skel **files**, not it's directories!" echo "WARNING; you will have to remove those manually" cd skel/ for f in $(find . -type f | sed 's|.\/|\/|'); do printf "\r\033[2KRM $f" [ -f $f ] && rm $f done echo -e "\r\033[2KDONE!"