From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Injected-Via-Gmane: http://gmane.org/ To: community@lists.altlinux.org From: Alexei Mezin Date: Wed, 20 Oct 2021 14:14:16 +0300 Message-ID: References: <04392f0f-dc10-f9e4-ca39-2192ee1e8982@tut.by> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: Content-Language: ru Subject: Re: [Comm] =?utf-8?b?0JrQvtC/0LjRgNC+0LLQsNC90LjQtSDRhNCw0LnQu9C+0LIg?= =?utf-8?b?0L/QviDRgtC40L/Rgw==?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2021 11:14:22 -0000 Archived-At: List-Archive: List-Post: 20.10.2021 14:06, Alexei Mezin пишет: > > Может так? > > find ./ОТКУДА/ -type f -name *.h -exec cp --parent '{}' /КУДА \; > Вторая ссылка в google("linux copy files with directory structure") выдает еще множество вариантов :) https://unix.stackexchange.com/questions/83593/copy-specific-file-type-keeping-the-folder-structure/107647