Can anyone tell me a simple way in Bash to copy all of the contents of a directory (and only the contents), including hidden files, into another, existing directory?
E.g.
Code:# I have this directory structure - directory_A --- existing_file - - directory_B --- some_file --- some_subdirectory --- .some_hidden_file # I want to end up with this - directory_A --- existing_file --- some_file --- some_subdirectory --- .some_hidden_file - - directory_B --- some_file --- some_subdirectory --- .some_hidden_file # I *don't* want this - directory_A --- existing_file --- directory_B ----- some_file ----- some_subdirectory ----- .some_hidden_file - - directory_B --- some_file --- some_subdirectory --- .some_hidden_file
So far I've been stymied in finding a simple way to do this from the command prompt.




Bookmarks