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 > Shell Programming and Scripting
.
google unix.com



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
rename bohoo Shell Programming and Scripting 1 04-07-2008 03:05 PM
rename files help piltrafa UNIX for Dummies Questions & Answers 2 10-04-2007 09:47 AM
how to rename a file before and after a ftp? forevercalz Shell Programming and Scripting 2 10-28-2005 09:19 AM
how can I rename the following=-^ nj78 UNIX for Dummies Questions & Answers 5 09-30-2005 01:13 AM
rename using mv ? simon2000 UNIX for Dummies Questions & Answers 2 03-19-2004 04:46 AM

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

Join Date: Aug 2007
Posts: 12
rename while doing ftp

hi friends,

I writing a script to psot dataset to ceratin server.....while doing ftp I have to rename the file while which is in present server like

present :test server

filename data.097878.

ftp server: it sholu be renamed as data.097878.zip

thanks,



The thing is that while we make put data.097878 I want to rename it atr this instant..
PWD=nagabhushna
file data.097878

ftp -inv production
username password
cd some dir
put data.097878 at this instant I want to rename it and post it as data.097878.tested

Last edited by Nagabhushan; 08-28-2007 at 03:56 AM..
  #2 (permalink)  
Old 08-28-2007
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,796
Quote:
Originally Posted by Nagabhushan View Post
put data.097878 at this instant I want to rename it and post it as data.097878.tested
Code:
put data.097878 data.097878.tested
will post it as the latter in the remote machine.
Sponsored Links
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 02:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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