#!/bin/sh if [ $# -ne 1 ] ; then exit 1 fi rep=$(dirname "$1") cible=$(basename "$1") cd "$rep" mv "$cible"/* . rmdir "$cible"