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