Early version of mv_here.sh
This script moves the contents of a given directory into its parent directory, then removes this directory. This is the version I created to integrate in ROX-Filer.
This commit is contained in:
parent
b31ee9d058
commit
902511b64b
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ $# -ne 1 ] ; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
rep=$(dirname "$1")
|
||||||
|
cible=$(basename "$1")
|
||||||
|
|
||||||
|
cd "$rep"
|
||||||
|
mv "$cible"/* .
|
||||||
|
rmdir "$cible"
|
Loading…
Reference in New Issue