Re: How to only show file URLs?

Alexander Lukyanov <[email protected]> Tue, 30 May 2017 07:52:13 +0000
Newsgroups gmane.network.lftp.user
Message-ID <CANnoEwr3kFv8C9zShZKo+Ca-6np31Oi+0Uf1pteAVj-DwOoxKg@mail.gmail.com>
--===============2877258438820086879==
Content-Type: multipart/alternative; boundary="001a113cf340870e6f0550b9155a"

--001a113cf340870e6f0550b9155a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Try "nlist" command. "cls" can also be useful.

=D0=B2=D1=82, 30 =D0=BC=D0=B0=D1=8F 2017 =D0=B3. =D0=B2 1:18, Peng Yu <peng=
[email protected]>:

> Hi, The following command shows attributes besides file names. Is
> there a way to let lftp only print file names or the complete URLs?
> Thanks.
>
> $ lftp ftp://ftp.ncbi.nlm.nih.gov:21/blast/db/ -e 'ls
> refseq_protein*.gz;exit'
> cd ok, cwd=3D/blast/db
> -r--r--r--   1 ftp      anonymous 708658320 May 27 00:07
> refseq_protein.00.tar.gz
> -r--r--r--   1 ftp      anonymous 698643198 May 27 00:09
> refseq_protein.01.tar.gz
> -r--r--r--   1 ftp      anonymous 701727787 May 27 00:11
> refseq_protein.02.tar.gz
> -r--r--r--   1 ftp      anonymous 685980116 May 27 00:13
> refseq_protein.03.tar.gz
> -r--r--r--   1 ftp      anonymous 674373439 May 27 00:15
> refseq_protein.04.tar.gz
> -r--r--r--   1 ftp      anonymous 667130719 May 27 00:17
> refseq_protein.05.tar.gz
> -r--r--r--   1 ftp      anonymous 653667987 May 27 00:19
> refseq_protein.06.tar.gz
> -r--r--r--   1 ftp      anonymous 664252645 May 27 00:21
> refseq_protein.07.tar.gz
> -r--r--r--   1 ftp      anonymous 669007597 May 27 00:23
> refseq_protein.08.tar.gz
> -r--r--r--   1 ftp      anonymous 692145767 May 27 00:25
> refseq_protein.09.tar.gz
> -r--r--r--   1 ftp      anonymous 668212712 May 27 00:27
> refseq_protein.10.tar.gz
> -r--r--r--   1 ftp      anonymous 654469324 May 27 00:29
> refseq_protein.11.tar.gz
> -r--r--r--   1 ftp      anonymous 666731375 May 27 00:31
> refseq_protein.12.tar.gz
> -r--r--r--   1 ftp      anonymous 677603129 May 27 00:33
> refseq_protein.13.tar.gz
> -r--r--r--   1 ftp      anonymous 602597680 May 27 00:34
> refseq_protein.14.tar.gz
> -r--r--r--   1 ftp      anonymous 638866819 May 27 00:36
> refseq_protein.15.tar.gz
> -r--r--r--   1 ftp      anonymous 667459457 May 27 00:38
> refseq_protein.16.tar.gz
> -r--r--r--   1 ftp      anonymous 633813436 May 27 00:40
> refseq_protein.17.tar.gz
> -r--r--r--   1 ftp      anonymous 662808544 May 27 00:42
> refseq_protein.18.tar.gz
> -r--r--r--   1 ftp      anonymous 616701358 May 27 00:44
> refseq_protein.19.tar.gz
> -r--r--r--   1 ftp      anonymous 652949735 May 27 00:46
> refseq_protein.20.tar.gz
> -r--r--r--   1 ftp      anonymous 634818426 May 27 00:48
> refseq_protein.21.tar.gz
> -r--r--r--   1 ftp      anonymous 623748621 May 27 00:50
> refseq_protein.22.tar.gz
> -r--r--r--   1 ftp      anonymous 585690447 May 27 00:51
> refseq_protein.23.tar.gz
> -r--r--r--   1 ftp      anonymous 635681793 May 27 00:53
> refseq_protein.24.tar.gz
> -r--r--r--   1 ftp      anonymous 650962073 May 27 00:55
> refseq_protein.25.tar.gz
> -r--r--r--   1 ftp      anonymous 643073612 May 27 00:57
> refseq_protein.26.tar.gz
> -r--r--r--   1 ftp      anonymous 638013864 May 27 00:59
> refseq_protein.27.tar.gz
> -r--r--r--   1 ftp      anonymous 657784526 May 27 01:01
> refseq_protein.28.tar.gz
> -r--r--r--   1 ftp      anonymous 661048285 May 27 01:03
> refseq_protein.29.tar.gz
> -r--r--r--   1 ftp      anonymous 685732090 May 27 01:06
> refseq_protein.30.tar.gz
> -r--r--r--   1 ftp      anonymous 295331989 May 27 01:07
> refseq_protein.31.tar.gz
>
>
> --
> Regards,
> Peng
> _______________________________________________
> lftp mailing list
> [email protected]
> http://univ.uniyar.ac.ru/mailman/listinfo/lftp
>

--001a113cf340870e6f0550b9155a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Try &quot;nlist&quot; command. &quot;cls&quot; can also be=
 useful.<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr">=D0=B2=D1=
=82, 30 =D0=BC=D0=B0=D1=8F 2017 =D0=B3. =D0=B2 1:18, Peng Yu &lt;<a href=3D=
"mailto:[email protected]">[email protected]</a>&gt;:<br></div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex">Hi, The following command shows attributes besides f=
ile names. Is<br>
there a way to let lftp only print file names or the complete URLs?<br>
Thanks.<br>
<br>
$ lftp <a href=3D"ftp://ftp.ncbi.nlm.nih.gov:21/blast/db/" rel=3D"noreferre=
r" target=3D"_blank">ftp://ftp.ncbi.nlm.nih.gov:21/blast/db/</a> -e &#39;ls=
 refseq_protein*.gz;exit&#39;<br>
cd ok, cwd=3D/blast/db<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 708658320 May 27=
 00:07<br>
refseq_protein.00.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 698643198 May 27=
 00:09<br>
refseq_protein.01.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 701727787 May 27=
 00:11<br>
refseq_protein.02.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 685980116 May 27=
 00:13<br>
refseq_protein.03.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 674373439 May 27=
 00:15<br>
refseq_protein.04.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 667130719 May 27=
 00:17<br>
refseq_protein.05.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 653667987 May 27=
 00:19<br>
refseq_protein.06.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 664252645 May 27=
 00:21<br>
refseq_protein.07.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 669007597 May 27=
 00:23<br>
refseq_protein.08.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 692145767 May 27=
 00:25<br>
refseq_protein.09.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 668212712 May 27=
 00:27<br>
refseq_protein.10.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 654469324 May 27=
 00:29<br>
refseq_protein.11.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 666731375 May 27=
 00:31<br>
refseq_protein.12.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 677603129 May 27=
 00:33<br>
refseq_protein.13.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 602597680 May 27=
 00:34<br>
refseq_protein.14.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 638866819 May 27=
 00:36<br>
refseq_protein.15.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 667459457 May 27=
 00:38<br>
refseq_protein.16.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 633813436 May 27=
 00:40<br>
refseq_protein.17.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 662808544 May 27=
 00:42<br>
refseq_protein.18.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 616701358 May 27=
 00:44<br>
refseq_protein.19.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 652949735 May 27=
 00:46<br>
refseq_protein.20.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 634818426 May 27=
 00:48<br>
refseq_protein.21.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 623748621 May 27=
 00:50<br>
refseq_protein.22.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 585690447 May 27=
 00:51<br>
refseq_protein.23.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 635681793 May 27=
 00:53<br>
refseq_protein.24.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 650962073 May 27=
 00:55<br>
refseq_protein.25.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 643073612 May 27=
 00:57<br>
refseq_protein.26.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 638013864 May 27=
 00:59<br>
refseq_protein.27.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 657784526 May 27=
 01:01<br>
refseq_protein.28.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 661048285 May 27=
 01:03<br>
refseq_protein.29.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 685732090 May 27=
 01:06<br>
refseq_protein.30.tar.gz<br>
-r--r--r--=C2=A0 =C2=A01 ftp=C2=A0 =C2=A0 =C2=A0 anonymous 295331989 May 27=
 01:07<br>
refseq_protein.31.tar.gz<br>
<br>
<br>
--<br>
Regards,<br>
Peng<br>
_______________________________________________<br>
lftp mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a=
><br>
<a href=3D"http://univ.uniyar.ac.ru/mailman/listinfo/lftp" rel=3D"noreferre=
r" target=3D"_blank">http://univ.uniyar.ac.ru/mailman/listinfo/lftp</a><br>
</blockquote></div>

--001a113cf340870e6f0550b9155a--

--===============2877258438820086879==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

--===============2877258438820086879==--