哪吒机器人提醒:

提醒:Linux by Examples
【标题】copy files and create the directories if it doesn’t exist
【摘要】it always have a need for this simple operation.i wanna copy certain files to a destination, but i wanna preserved the sub directories structure, any cp option to set? for examples, i wanna copy my_project/cpp/hello.cc to your_project folder, but i want it to appear as your_project/cpp/hello.cc automatically. especially i wanna do it in a batch of file.by just using cp command, until today, i do not see such option for it.you need additional commands, dirname and mkdir.you may read a list of... (09-05 12:10)