til/bash-scripting/moving-everything-one-level-up.md

9 lines
180 B
Markdown

You can move every file (except the hidden ones) up by one level in the hierarchy with something like this:
```bash
for d in */ ; do
mv $d* .
rmdir $d # optional
done
```