Weeeellll, with a bit of bodging you can sort of do this.
Tar allows you to operate on an incoming stream (it was originally designed for this) and stop when you've got all you want. You still need to seek through the file until you've found all the files you want:
This will seek through the tarball, streaming off the ftp server and pop the file you want off as it passes. You can specify multiple files on the one commandline but this will only work if you know the files (although you could try passing an escaped wildcard and see how you go - you'll have to manually abort the extract once you feel you have all the files you want though).
You can also pass the "--files-from <file containing the filnames you want>" flag to tar if you prefer.
Note that this won't save you loads of time, especially so if all the files you want are at the end of the archive, but it will help if they are at the start of the file and it's an interesting exercise in streams.
This User Gave Thanks to Smiling Dragon For This Post:
hi
please help me out here,
i want to use curl command in shell script to test web pages,
what i have is an opening page, when i click on a button on opening page, the next page comes up and then i have to upload a file n then click another button to submit and then comes the output page,... (2 Replies)
Hi
I'm trying to download an xml file from a https server using curl on a Linux machine with Ubuntu 10.4.2
I am able to connect to the remote server with my username and password but the output is only "Virtual user <username> logged in".
I am expecting to download the xml file.
My output... (4 Replies)
Hi
I need a Shell script that will download a zip file every second from a http server but i can't use neither curl nor wget.
Can anyone will help me go about this task ???
Thanks!! (1 Reply)
Hi,
I need to implement below logic to download files daily from a URL.
* Need to check if it is yesterday's file (YYYY-DD-MM.dat)
* If present then download from URL (sample_url/2013-01-28.dat)
* Need to implement wait logic if not present
* if it still not able to find the file... (1 Reply)
Hello all,
I have been struggling with this issue on and off for a couple of weeks now and I just got it all working, so I wanted to share my findings in case some other poor soul needs to know how. First some background on what I'm doing. I am uploading files to different directories based on... (0 Replies)
Need Assistance . Using wget how can i download multiple files from http site. Http doesnt has wild card (*) but FTP has it . Any ideas will be appreciative.
wget --timeout=120 --append-output=output.txt --no-directories --cut-dirs=1 -np -m --accept=grib2 -r http://sample.com/... (4 Replies)
Hi,
I need to download a zip file from my the below US govt link.
https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP
I only have wget utility installed on the server.
When I use the below command, I am getting error 403... (2 Replies)
I am using the below curl command to download a single file from client server and it is working as expected
curl --ftp-ssl -k -u ${USER}:${PASSWD} ftp://${HOST}:${PORT}/path/to/${FILE} --output ${DEST}/${FILE}
let say the client has 3 files hellofile.101, hellofile.102, hellofile.103 and I... (3 Replies)
Discussion started by: r@v!7*7@
3 Replies
LEARN ABOUT CENTOS
wnpkgs
WNPKGS(7) WordNettm WNPKGS(7)NAME
wnpkgs - description of various WordNet system packages
DESCRIPTION
WordNet 3.0 is distributed in several formats and in various packages. All of the packages are available via anonymous FTP from
ftp.cogsci.princeton.edu and from the WordNet Web site at http://wordnet.princeton.edu.
Packages Available Via FTP and WWW
The following WordNet packages can be downloaded using a web browser from ftp://ftp.cogsci.princeton.edu/wordnet/3.0, or from the Web site
noted above. Users can also FTP directly from ftp.cogsci.princeton.edu, directory wordnet/3.0.
+----------------+---------------------+-----------+-------------------------------+
| Package | Filename | Platform | Description |
+----------------+---------------------+-----------+-------------------------------+
|Database | WordNet-3.0.tar.gz | Unix/OS X | WordNet 3.0 database, inter- |
| | | | faces, sense index, interface |
| | | | and library source code, doc- |
| | | | umentation. |
|Database | WordNet-3.0.exe | Windows | WordNet 3.0 database, inter- |
| | | | faces, sense index, interface |
| | | | and library source code, doc- |
| | | | umentation. |
|Prolog Database | WNprolog-3.0.tar.gz | All | WordNet 3.0 database files in |
| | | | Prolog-readable format, docu- |
| | | | mentation. |
|Sense Map | WNsnsmap-3.0.tar.gz | All | Mapping of 2.1 to 3.0 senses, |
| | | | documentation. |
+----------------+---------------------+-----------+-------------------------------+
Database Package
The database package is a complete installation for WordNet 3.0 users. It includes the 3.0 database files, source code for the WordNet
browsers and library, and documentation. The other packages are not included - they must be downloaded and installed separately.
Note that with this version of WordNet for Unix platforms, only source code is provided. Users should carefully read the README and
INSTALL files for detailed information on compiling WordNet and dependencies.
Prolog Database Package
The WordNet 3.0 database files are available in this package in a Prolog-readable format. Documentation describing the file format is
included. This package is only downloadable in compressed tar file format, although once unpackaged it can be used from Windows systems
since the files are in ASCII. Many Windows utilities, such as WinZip, can deal with a compressed tar file.
Sense Map Package
To help users automatically convert 2.1 noun and verb senses to their corresponding 3.0 senses, we provide sense mapping information in
this package. This package contains files to map polysemous and monosemous words, and documentation that describes the format of these
files. As with the Prolog database, this package is only downloadable in compressed tar format, but the files are also in ASCII.
NOTES
The lexicographer files and grind(1) program are not generally distributed.
All of the packages described above may not be available at the time of release of the 3.0 database package.
SEE ALSO wnintro(1), wnintro(3), wnintro(5), wnintro(7).
WordNet 3.0 Dec 2006 WNPKGS(7)