Dominic Mitchell dom at
Tue Feb 12 11:32:03 GMT 2002

On Tue, Feb 12, 2002 at 03:09:03AM +0000, Rik wrote:
> Enter zsh. I kid you not, I resorted to using zsh's zftp client. Why?
> Client side globbing.
> zmodload zftp
> zftp open anonymous foo at 
> zftp cd daemontools
> for file in `zftp ls`; do
>   zftp get $file > $file
> done
> zftp close

You may find it easier to put "autoload -U zfinit ; zfinit" in your
/etc/zshrc.  Then you can do:

	zfcd daemontools
	for file in `zfls` ; do
		zfget $file

Which is slightly more readable.  :-)


More information about the Ukfreebsd mailing list