The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
shell script to find and replace string in multiple files pharos467 Shell Programming and Scripting 11 01-15-2009 11:40 AM
Find and Replace in multiple files (Shell script) jatins_s Shell Programming and Scripting 13 11-05-2007 02:11 PM
How to process multiple files in Korn Shell stevefox Shell Programming and Scripting 3 11-22-2005 06:39 AM
Multiple su - in Korn Shell script furrari Shell Programming and Scripting 2 07-30-2004 09:29 AM
Need quick help with basic FIND in korn shell Freakytah Shell Programming and Scripting 6 11-30-2001 04:38 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-13-2007
lambjam lambjam is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 2
find and FTP multiple files in Korn Shell

I want to FTP multiple files in a directory that the files were created since midnight of the same day using korn shell. I can use the "find" command using -newer arguement that compares against a time stamp file. The script identifies the files, I can't use a variable = `find . ` as the variable will only identify the first file it finds and echo a ./filename and FTP only that file. I need to be able to FTP multiple files Is there another way to get multiple files to do an action such as FTP?
  #2 (permalink)  
Old 08-13-2007
lambjam lambjam is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 2
I have answered my question by doing a "for" "in" "do" process.
  #3 (permalink)  
Old 08-13-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Let ..... mean your extra criteria

Code:
find . -type file ....
will list only files, so assuming you have your .netrc setup.....

Code:
find . -type file ..... | while read N
do
      echo "put $N" | ftp remote-host
done
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0