mirror of
https://github.com/sahinakkaya/til.git
synced 2024-11-22 08:39:39 +01:00
TIL: Moving everything one level up
This commit is contained in:
parent
c0c710df69
commit
8bc5cb91ff
8
bash-scripting/moving-everything-one-level-up.md
Normal file
8
bash-scripting/moving-everything-one-level-up.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user