dotfiles/.local/bin/scripts/denest

4 lines
113 B
Plaintext
Raw Normal View History

2022-01-05 16:53:06 +00:00
#!/bin/sh
# Remove one level of folders
find -mindepth 1 -maxdepth 1 -exec sh -c 'mv -nv {}/* . && rm -dv {}' \;