til/bash-scripting/moving-everything-one-level-up.md
2021-07-03 17:22:27 +03:00

176 B

You can move every file (except the hidden ones) up by one level in the hierarchy with something like this:

for d in */ ; do
    mv $d* .
    rmdir $d # optional
done