Sponsored Content
Top Forums Shell Programming and Scripting FTP a file if the date matches Post 302946301 by jgt on Sunday 7th of June 2015 04:34:34 PM
Old 06-07-2015
Code:
ftp site <<EOF >file.list
ls -l
EOF

Analyse the contents of file.list to decide what to retrieve.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ftp copy: preserve source file date stamp

Is there any way to preserve a file's create/mod date stamp when it is "put" via ftp (or even using Fetch) to a Win2K server and a SunOS 5.8 server? For example, if I copy a file with a create/mod date of "01/15/2005 3:36 PM" to my Win2K or SunOS ftp server, the date stamp will change to the... (5 Replies)
Discussion started by: cassj
5 Replies

2. Shell Programming and Scripting

FTP - Get the file date and time on the remote server

I would like to know if there is a way to get the date and timestamp of the file that is being FTP from the remote server using shell script. Currently the get command from FTP will have current date and timestamp. Tried the earlier suggestion 'HardFeed' but still getting the current date and time... (12 Replies)
Discussion started by: gthokala
12 Replies

3. Shell Programming and Scripting

How do I access the create date from Windows after the file has been FTP'd to UNIX ?

I run an application that creates a hostname_log.txt file on the c:\ of each windows workstation. At the end of each day, these log files are FTP'd to a directory on a UNIX box. When I run "ls -lrt", the timestamp that is displayed is the timestamp that the FTP occured, not the timestamp... (2 Replies)
Discussion started by: gavman99
2 Replies

4. UNIX for Dummies Questions & Answers

adding date to a file during FTP

I have a very basic question here. I have to FTP a file from a AIX unix box to a windows server. But during that I have to rename the file. For example: I have to FTP a file called ORDER.TXT from unix and it should go as ORDER_20090101.TXT on to the windows server. It is not possible to... (5 Replies)
Discussion started by: vara32
5 Replies

5. Shell Programming and Scripting

How to FTP the latest file, based on date, from a remote server through a shell script?

How to FTP the latest file, based on date, from a remote server through a shell script? I have four files to be FTP'ed from remote server. They are of the following format. build1_runtime_mmddyyyy.txt build2_runtime_mmddyyyy.txt build3_runtime_mmddyyyy.txt buifile_count_mmddyyyy.txt ... (9 Replies)
Discussion started by: imran_affu
9 Replies

6. UNIX for Dummies Questions & Answers

Pipe binary file matches grep results to file

I am using grep to match a pattern, but the output is strange. $ grep -r -o "pattern" * Gives me: Binary file foo1 matches Binary file foo2 matches Binary file foo3 matches To find the lines before/after, I then have to use the following on each file: $ strings foo1 | grep -A1 -B1... (0 Replies)
Discussion started by: chipperuga
0 Replies

7. Shell Programming and Scripting

Find file that matches today's date in filename and move to /tmp in bash

I'm having problems with my bash script. I would like to find a file matching today's date in the filename, i.e. my_file_20120902.txt and then move it to a different directory, i.e. /tmp. Thanks. (1 Reply)
Discussion started by: jamesi
1 Replies

8. UNIX for Dummies Questions & Answers

'No Matches' error in FTP

Hi, I am trying to execute a script as below I am trying to connect to a server through a secure connection and then type the command as below /usr/local/bin/sftp -t 2800 $REMOTE_SERVER $REMOTE_USER <<EOD > $MAINDATA/FTPLog cd $HOME_DOWNLOAD ls `echo $1 |... (3 Replies)
Discussion started by: spari2
3 Replies

9. UNIX for Advanced & Expert Users

Want to download a latest file with current date from FTP location

Dear Friends, I need help to write a shell / perl script to download the files from FTP location, having different file names (date inside the file name). Example: Mar 5 09:24 cfx_03052013_return_file.txt Mar 6 02:13 cfx_03062013_return_file.txt Mar 7 06:40... (3 Replies)
Discussion started by: Praveen Pandit
3 Replies

10. Shell Programming and Scripting

Read latest file name with a date and time and then download from FTP

Hi All, Please help. I have requirement to read the file / folder based on the latest date and download the file and folder. There will be files and folders in the location like 20140630-144422 20140630-144422.csv 20140707-182653 20140707-182653.csv 20140710-183153... (7 Replies)
Discussion started by: Praveen Pandit
7 Replies
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)
All times are GMT -4. The time now is 01:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy