* Re: Copy newest file to newest directory [not found] ` <20061208134715.GC17120@fsst.voodoo.lan> @ 2006-12-08 14:10 ` zzapper 0 siblings, 0 replies; only message in thread From: zzapper @ 2006-12-08 14:10 UTC (permalink / raw) To: zsh-workers; +Cc: zsh-users Frank Terbeck <ft@bewatermyfriend.de> wrote in news:20061208134715.GC17120@fsst.voodoo.lan: Frank Thanks I've just added an echo function cpn() { setopt localoptions setopt globassign local nf nd [[ -z ${1} || -z ${2} ]] && printf 'usage: cpn <fromdir> <todir>\n' && return 1 nf=${1}/*(.om[1]N) nd=${2}/*(/om[1]N) result="cp $nf $nd" [[ -n ${nd} && -n ${nf} ]] && command cp ${nf} ${nd} ; echo $result } -- zzapper http://successtheory.com/tips/ Vim, Zsh, MySQL Tips ^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-08 14:11 UTC | newest] Thread overview: (only message) (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <Xns98937B980EE3Ezzappergmailcom@80.91.229.5> [not found] ` <20061208122238.GA17120@fsst.voodoo.lan> [not found] ` <Xns98938890B9A97zzappergmailcom@80.91.229.5> [not found] ` <20061208134715.GC17120@fsst.voodoo.lan> 2006-12-08 14:10 ` Copy newest file to newest directory zzapper
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).