Skip to content

Instantly share code, notes, and snippets.

@jjmartucci
Created May 7, 2020 16:43
Show Gist options
  • Save jjmartucci/4ee42ea36f6d0af7550a1f2068a783de to your computer and use it in GitHub Desktop.
Save jjmartucci/4ee42ea36f6d0af7550a1f2068a783de to your computer and use it in GitHub Desktop.
Copy the contents of one direction into another in Bash

cp -R ./src/. ./ e.g.

src/
	file1
	folder/
		file2
		file3

becomes

file1
folder/
	file2
	file3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment