#!/bin/bash function main() { script="$(readlink -e "$0")" ordner="$(echo $script | rev | cut -d '/' -f 2- | rev)" cd "$ordner" mv -v * ../ mv .git* ../ cd .. rm -r md5_cp/ } main