#!/bin/sh # BASE_FOLDERS="data Downloads media_images Videos C64" VIP_FOLDERS="prj Schreibtisch" echo The following folders will be deleted: for folder in $BASE_FOLDERS; do echo -e "* $HOME/\033[1m$folder\033[0m" done for folder in $VIP_FOLDERS; do echo -e "* $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 $BASE_FOLDERS; do rm -f $HOME/$folder; ln -s /usr/data/$USER/$folder $HOME done for folder in $VIP_FOLDERS; do rm -rf $HOME/$folder; ln -s /usr/data/$USER/data/$folder $HOME done ;; *) echo No folder initialisation! ;; esac