![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| conditional email | ricky007 | Shell Programming and Scripting | 3 | 03-06-2008 01:38 AM |
| AWK - conditional cause | Rafael.Buria | Shell Programming and Scripting | 2 | 01-28-2008 01:24 PM |
| conditional statement | lalelle | Shell Programming and Scripting | 8 | 08-21-2007 08:57 AM |
| conditional split | braindrain | Shell Programming and Scripting | 5 | 03-11-2006 03:54 AM |
| Conditional Statements | cstovall | Shell Programming and Scripting | 1 | 05-15-2005 05:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi Have a Nice Day
i m stuck with this quite easy task assume that i m in certain directory and i open a ftp connection from there to some other directory and in second directory there are like so many files from july 02 till today what would be the simple unix command to ftp all files from this directory of specific date ( like which were created on that specific date ) ![]() Regards |
|
||||
|
Create an ftp script that logs on to the remote system and runs 'ls -l'
save the output into a file, edit the file and create a new script to retrieve the files that you need ftp remote.host <<EOF >file.list userid password ls -l quit EOF then either modify file.list manually, or write a script to extract what you need from it. |
|
||||
|
FTP download file by date
This can help only if your files have a date stamp in their name
#!/bin/bash -vx now_date=`date +%d%m20%y` --for date in for ddmmyyyy ftp -in 192.168.77.7<<END_SCRIPT quote USER abc quote PASS XXXX bin prompt off cd /folder_1_on_ftp lcd /folder_2_on_local --folder on local drive mget *${now_date}* bye END_SCRIPT |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|