I'm trying to move files from various 'docs' directories located inside a main 'DOCS' directory. For example, I want to move all the files from ~/DOCS/docs/* into ~/DOCS/* and then delete the now-empty 'docs' folder. I have over 1000 of these directories, each with different names, and some directories shouldn't change. Sorry if I'm being unclear!
1 Answer
It sounds like you want to use the `mv` command. You can do it like this:
`mv -r ~/DOCS/docs/ ~/DOCS/`
Just remember that `mv` stands for move and `-r` means recursive, so it'll handle everything inside 'docs' and any subdirectories. This should work for your case!
Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux