2
votes
4answers
566 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. ...