How can I copy a number of directories:
directory_01
directory_02
directory_03
to different directories
tmp_directory_01
tmp_directory_02
tmp_directory_03
where each tmp_directory_* directory has the same content(files and subdirectories) as directory_*. For example tmp_directory_01 will have the same contents as directory_01.
directory_x
totmp_directory_x
or you want to havedirectory_x
as subdirectory oftmp_directory_x
?cp -R "$d"/* "tmp_$d"