Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Copy newest file to newest directory
- X-seq: zsh-users 11067
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Copy newest file to newest directory
- Date: Fri, 8 Dec 2006 12:09:00 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- Sender: news <news@xxxxxxxxxxxxx>
Hi
I have some global aliases which call scripts such that I can write
> cp NF ND
Where NF copies the newest file to ND the newest directory
these are relative to current directory
I'd like to be able to generalise this ie
> cp /tmp/NF /store/ND
Obviously the above cannot work but any (lateral) ideas?
--
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author