1

マージしたい2つのフォルダーがあります。ルートはAIR3SDKで、フレームワーク、lib、binなどのサブフォルダーがあります。マージしたいフォルダーの名前はAIR SDKで、同じ名前のサブフォルダーも含まれています。ルートフォルダといくつかは新しいものです。

ルートフォルダ内で異なるすべてのファイルを新しいファイルで上書きしたい(フォルダ全体を上書きするのではなく、どのファイルが異なるかを確認してください)。AIR SDKにのみ存在する新しいファイルの場合は、適切なフォルダーにコピーしたいと思います。

rsync -r "AIR SDK" "AIR3SDK"を試しましたが、AIRSDKフォルダーをAIR3SDKフォルダーにコピーするだけです。

ありがとう!

4

1 に答える 1

1

If I understand your intention correctly, you can do that by using

cp -Rp "AIR SDK/" AIR3SDK

It will copy the contents of AIR SDK into AIR3SDK, replacing any files present in both directory structures with the version from AIR SDK. Documentation for the cp command is here: http://linux.about.com/od/commands/l/blcmdl1_cp.htm

If the copy was successful, you can remove AIR SDK with

rm -rf "AIR SDK/"

Documentation here: http://linux.about.com/od/commands/l/blcmdl1_rm.htm

于 2012-05-30T09:47:06.053 に答える