zsh-users
 help / color / mirror / code / Atom feed
* Half OT: Convenient way to a copy with path of single files
@ 2011-09-24  5:09 meino.cramer
  2011-09-24  6:38 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: meino.cramer @ 2011-09-24  5:09 UTC (permalink / raw)
  To: zsh-users


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-24  6:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-24  5:09 Half OT: Convenient way to a copy with path of single files meino.cramer
2011-09-24  6:38 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).