If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > whats the best way to get this done?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-08, 12:37
wg1856 wg1856 is offline
Registered User
 
Join Date: Oct 2008
Location: Milwaukee
Posts: 4
whats the best way to get this done?

I am new to unix scripting.

Looking for some direction here how to do the following


I have a file that contains names



Bill
Jim
Mike
Tom
Ed



I need to loop through the file and replace a variable and then do a FTP

Start of loop (I would guess do a while?)
Some how access file (???)
LCD=/home/aim/$LOGNAME/TELD_TIER1_SUPPORT
OCD=/home/aim/$name/TELD_TIER1_SUPPORT
(Bill) needs to go into $name
(Jim) second time around
(Mike) thrid time around
FTP (I have working)
Back to start of loop

Last edited by wg1856; 10-24-08 at 12:50.
Reply With Quote
  #2 (permalink)  
Old 10-24-08, 14:24
wg1856 wg1856 is offline
Registered User
 
Join Date: Oct 2008
Location: Milwaukee
Posts: 4
I got it working thanks anyway
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On