Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Copy newest file to newest directory



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