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. Is there a way to move only the directories?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community