#!/bin/sh # REPLACE_FOLDERS="Audio Bilder data Dokumente Downloads eclipse Musik prj Schreibtisch Videos" echo The following folders will be deleted: for folder in $REPLACE_FOLDERS; do echo "* $HOME/\033[1m$folder\033[0m" done echo read -r -p "Are you sure? [y/N] " response case "$response" in [yY][eE][sS]|[yY]) for folder in $REPLACE_FOLDERS; do if [ "$folder" = "data" ]; then rm -f $HOME/data; ln -s /usr/data/$USER $HOME/data else rm -rf $HOME/$folder; ln -s /usr/data/$USER/$folder $HOME fi done ;; *) echo No folder initialisation! ;; esac