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

9 lines
176 B
Markdown
Raw Normal View History

2021-07-03 16:22:27 +02:00
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
```