cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl command line too limit SFTP listing

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 21 Nov 2011 00:45:58 +0100 (CET)

On Fri, 18 Nov 2011, Faizel Isaacs wrote:

> Is there any parameters I can pass to CURL to limit listing it brings back
> once a do quote "ls" or ""dir". I got a directory that contains lots of
> files but I want to limit the listing coming back from the server to 150
> files at a time only.

No, but you can easily use:

$ curl [URL] | head -n 150

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-21