From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2741 invoked by alias); 24 Sep 2011 05:16:06 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16412 Received: (qmail 20076 invoked from network); 24 Sep 2011 05:16:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at gmx.de designates 213.165.64.22 as permitted sender) X-Authenticated: #20088476 X-Provags-ID: V01U2FsdGVkX1+Qs1cASb+QC7MdRh9wzl2NkGlZY4y8Mad6fHMBlB 7t3Bq11j7QzwHL Date: Sat, 24 Sep 2011 07:09:25 +0200 From: meino.cramer@gmx.de To: zsh-users@zsh.org Subject: Half OT: Convenient way to a copy with path of single files Message-ID: <20110924050925.GD16512@solfire> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Linux) X-Y-GMX-Trusted: 0 Hi, I am looking for a convenient way to copy a handful of files as follows ("mycp" stands for what ever I have to use to accomplish the copy): mycp /home/user/A/B/C/D/files.txt /home/A/B/other/. results in : /home/A/B/other/C/D/files.txt where 'files.txt' is a placeholder for everything which my be matched by regular expressions inclusive furthere directories, symlinks etc... Is there a alreadu a command in the treasure of zsh or do I have to script something? Thank you very much in advance for any help! Best regards, mcc