scripts/mv_here/mv_here.sh

13 lines
131 B
Bash
Executable File

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