I am total new to shell scripting. I have to write a script that moves every file/folder to the folder above.
d/doc/new_x/x
d/doc/new_y/y
d/doc/new_z/z
x,y,z
should be moved to d/doc/
x,y,z
can be folders or files
for d in */; do
mv $d /.
done
I'm unsure of how to move the directories to the folder above.
Edit: Sorry made mistake in foldernames
its
d/doc/new_x/x and x has to be moved to d/doc