[lug] Globs, tar and pipes (ftp question)
John Karns
jkarns at csd.net
Wed Aug 29 23:32:31 MDT 2001
On Sun, 26 Aug 2001, John Starkey said:
> I'm trying to weed through roughly 40 gigs on an ftp server. Each dir
> that I want contains ABC at the end. The server allows tar'ing but not
> writing. Anyone know a way to do this?
>
> In the root dir I'm finding the dirs I want with:
>
> ls [A-Z]*/*ABC
>
> I've tried:
>
> mget [A-Z]*/*ABC/[a-z]*/
>
> and
>
> get [A-Z]*/*ABC/[a-z]*.tar
>
> And many other variations. Is there a way to pipe them into tar and
> get? I'm getting to the point where any more experimentation would be
> rude.
> wget is returning "error in server response, closing control
> connection" just after the port command. So I'm leaning towards
> ftp.... that comfort zone thing again.
Digging my out of a backlog of mail here ...
mc is great for this kind of thing - simply cd ftp://userid@server.domain
in the command line, then tag dir's of interest [via Insert key, or
ctl-T] then press F5 to copy. Does recursive copy.
----------------------------------------------------------------
John Karns jkarns at csd.net
More information about the LUG
mailing list