Re: How can I just get the output name?
Paul Gilmartin via curl-users <[email protected]>
| Newsgroups | gmane.comp.web.curl.general |
|---|---|
| Message-ID | <[email protected]> |
On 3/24/24 06:41:09, ToddAndMargo via curl-users wrote:
> ...
> All I want is the "duo-win-login-4.3.0.exe" text.
> Using cURL, is there a way to get?
> ...
Me, too. In desperation I do something like:
mkdir -p RO &&
chmod a-w RO &&
( cd RO ) ||
exit $?
FILE=$( cd RO && curl --location \
--write-out %{filename_effective} \
--remote-name --remote-header-name "$1" )
... the fetch to a read-only directory fails, but
FILE is set for use in a further command.
--
gil
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette: https://curl.se/mail/etiquette.html