Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
copy the newest file
- X-seq: zsh-users 11699
- From: fREW <frioux@xxxxxxxxx>
- To: "Zsh users list" <zsh-users@xxxxxxxxxx>
- Subject: copy the newest file
- Date: Thu, 2 Aug 2007 14:30:05 -0600
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=SCMbwJzGc25VgzG5KFm3pwehYegMbVCVXbp5i51TGY9nso+P1Lz0zhEwCBDNTR650XAcSaO5oMOcu9QYTkyFYyrlaxfEZJ9hhg1XmCIvWr+W3kr4zfqR9p6Xu8aDNiyN7A7zotdtVzEqZCn9HIHtZvbBc4N2TSswLOO815LR20M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ep8+yyN/KOqet676N6t4iL2j2twC+2ek27PsmlEZN+n+nJDq42NHCmVGg1Kv0hY/apmq2mGcYlO1rQ99cEw+D/hSlpvdkSXAJfE/dgJlFT4LfOvp7gdG2l9YCVPV56VZNmBw9QxsrQxMbeHnBDZP+73oePaLoWz6DlOHVlHKjnA=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hello again friends,
I am working on a little script that will run as a cron job and copy a
few files to another computer via scp. I only want to copy the newest
one. How do I get that newest file? This is what I have figured out
so far:
/backups/daily/database*(om)
That will be a list of all the files starting with database and the
most recently modified first. How can I just pick off the first one
from the list? Also: where can I look in the man files for such
things?
Thanks!
--
-fREW
Messages sorted by:
Reverse Date,
Date,
Thread,
Author