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 a file name Aswarth Shell Programming and Scripting 0 06-04-2008 02:18 PM
rename the file in batch reldb UNIX for Advanced & Expert Users 7 01-14-2008 06:43 PM
Not able to rename file MANISH KU Shell Programming and Scripting 2 06-27-2007 04:07 AM
File rename redlotus72 UNIX for Dummies Questions & Answers 1 03-09-2006 11:52 AM
Help with multiple file rename - change case of part of file name steve7 UNIX for Dummies Questions & Answers 7 06-30-2005 01:41 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 10-28-2005
forevercalz forevercalz is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 74
how to rename a file before and after a ftp?

I doin a script in sh.
For example:
i have this code here whereby $5 is a text file. eg file.txt. I wanna rename it to file.txt.tmp. so i use this code below which is correct.
put $5 $5.tmp

But when the ftp transfer is complete i need to rename the file back to $5 which is file.txt.

How do i do that?
izzit use
mv $5.tmp $5?
i got problem with that...

Thanks in advance for those who help.
  #2 (permalink)  
Old 10-28-2005
plimpix plimpix is offline
Registered User
  
 

Join Date: May 2005
Location: Scotland
Posts: 28
remote file

Could you post the script you are using so i can get a better understanding what you are doing ?
  #3 (permalink)  
Old 10-28-2005
supaphat supaphat is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 22
use the ftp `rename` command
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 11:37 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