0
votes
2answers
30 views

Linux move files from specific directory one directory up and delete empty folder

I need to move files out from directory inside directory inside directory and remove folder that i move them from. I would need recursive script. Directory structure: ...
1
vote
4answers
293 views

Replace existing folder with mv command

Apologies if this question has already been asked, I couldn't find anything… Lets say I want to replace 'oldstuff' with 'newstuff'. Basically re-naming to replace. I try using this command: mv ...
4
votes
2answers
1k views

How to move multiple directories, but exclude files in current path with similar name?

Say I have a directory that contains the following: dir1/ dir2/ dir3/ ... dir50/ dir1.txt dir2.txt dir3.txt ... dir50.txt I have been using mv dir* /someotherpath/, then move the *.txt files back. ...