How to get the latest uploaded path from curl output?
I'm able to download the file successfully using the following curl command.
Example of directory contents and filenames from response.txt is
So, I would like to automate the whole process to find out the latest folder name from it? I tried using
using column
names but still not able to figure it out if this is the best solution as I don't know if, in long run whether column 3 and 4 will be right one to provide the latest folder?
can anyone suggest me how to get the latest
from here best possible way?
PS: Now i tested with some other values sort is definitely not the right one.
Last edited by manas_ranjan; 03-09-2020 at 07:04 AM..
Reason: added PS
hello hackers.
i have a curl process running as cgi directly pushing stdout to the client. but i want to additionally save that stream to a file at the same time.
any directions madly welcome.
thanks in advance (3 Replies)
hi,
new to scripting and would like to know how can I have a script which will curl a few URLs and have the results such as the URLs being curled, dns lookup time, connection time, total time, etc save in a html format in a form of table with column and rows.
thank you. (4 Replies)
This is about to drive me crazy. What I want to do is simple:
output ALL the verbose information from curl to a file
I have read the manual, tried several options and searched this forum but no salvation...
I'm using
curl -k -Q "command" --user user:passwd --ftp-pasv --ftp-ssl -v... (1 Reply)
ls -lrt | nawk -v D="$(date +'%b%e:'| sed 's/ //g')" 'D==$6$7":"{sub(".*"$9,$9);print}'
This picks only the latest files created based on the timestamp for that particular day..
how do i copy over the same files to a different location???? (1 Reply)
Hi,
I'm trying to write a script to download RedHat's errata digest.
It comes in a txt.gz format, and i can get it easily with firefox.
HOWEVER: output is VERY strange when donwloading it in a script. It seems I'm getting a file of the same size - but partially text and partly binary! It... (5 Replies)
i use curl and wget quite often.
i set up alarms on their output. for instance, i would run a "wget" on a url and then search for certain strings within the output given by the "wget".
the problem is, i cant get the entire output or response of my wget/curl command to show up correctly in... (3 Replies)
Hello guys,
I'm writing a little script which sends me sms with my shell script via api of a sms provider.
problem is I can't filter my curl output for this site:
site url:... (1 Reply)
Hello.
I use curl to fetch a website, then, I want to extract the URLs from this curls output.
I tried both sed and grep, but couldnt figure it out.
Ive tried : sed -n 's/href="\(*\).*/\1/p' results.txt
and grep -o
grep -o '<a href="http://*.*.*/*">' results.txt.
What pattern... (6 Replies)
find /app/data -name "Availability" -
Below is the output now i need to filter based on latest modified timestamp.
I know 3 is the latest modified time stamp but i tried different options but only filtering docs and not on headnote..Can any one tell me how to do that..
... (2 Replies)
How can I get the name of the default output filename from curl using the argument -O?
Using -o one can choose a filename. I want to get the name of the original file, but don't understand how to get it.
curl -o filename http://www.website.com
curl -O http://www.website.com
The... (3 Replies)
Discussion started by: locoroco
3 Replies
LEARN ABOUT SUSE
curl-config
curl-config(1) curl-config manual curl-config(1)NAME
curl-config - Get information about a libcurl installation
SYNOPSIS
curl-config [options]
DESCRIPTION
curl-config displays information about the curl and libcurl installation.
OPTIONS --ca Displays the built-in path to the CA cert bundle this libcurl uses.
--cc Displays the compiler used to build libcurl.
--cflags
Set of compiler options (CFLAGS) to use when compiling files that use libcurl. Currently that is only the include path to the curl
include files.
--checkfor [version]
Specify the oldest possible libcurl version string you want, and this script will return 0 if the current installation is new enough
or it returns 1 and outputs a text saying that the current version is not new enough. (Added in 7.15.4)
--configure
Displays the arguments given to configure when building curl.
--feature
Lists what particular main features the installed libcurl was built with. At the time of writing, this list may include SSL, KRB4 or
IPv6. Do not assume any particular order. The keywords will be separated by newlines. There may be none, one, or several keywords in
the list.
--help Displays the available options.
--libs Shows the complete set of libs and other linker options you will need in order to link your application with libcurl.
--prefix
This is the prefix used when libcurl was installed. Libcurl is then installed in $prefix/lib and its header files are installed in
$prefix/include and so on. The prefix is set with "configure --prefix".
--protocols
Lists what particular protocols the installed libcurl was built to support. At the time of writing, this list may include HTTP,
HTTPS, FTP, FTPS, FILE, TELNET, LDAP, DICT. Do not assume any particular order. The protocols will be listed using uppercase and are
separated by newlines. There may be none, one, or several protocols in the list. (Added in 7.13.0)
--static-libs
Shows the complete set of libs and other linker options you will need in order to link your application with libcurl statically.
(Added in 7.17.1)
--version
Outputs version information about the installed libcurl.
--vernum
Outputs version information about the installed libcurl, in numerical mode. This outputs the version number, in hexadecimal, with 8
bits for each part; major, minor, patch. So that libcurl 7.7.4 would appear as 070704 and libcurl 12.13.14 would appear as 0c0d0e...
Note that the initial zero might be omitted. (This option was broken in the 7.15.0 release.)
EXAMPLES
What linker options do I need when I link with libcurl?
$ curl-config --libs
What compiler options do I need when I compile using libcurl functions?
$ curl-config --cflags
How do I know if libcurl was built with SSL support?
$ curl-config --feature | grep SSL
What's the installed libcurl version?
$ curl-config --version
How do I build a single file with a one-line command?
$ `curl-config --cc --cflags --libs` -o example example.c
SEE ALSO curl(1)Curl 7.17.1 25 Oct 2007 curl-config(1)