![]() |
|
|
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 |
| listing files on remote server | vasuarjula | AIX | 3 | 06-02-2008 03:23 PM |
| delete files on a remote server | bond_bhai | UNIX for Advanced & Expert Users | 1 | 07-27-2007 07:19 AM |
| FTP multiple files from remote server to local server | berlin_germany | Shell Programming and Scripting | 2 | 12-20-2006 03:24 AM |
| copying files to a remote aix server using tar! | system-admin | AIX | 2 | 11-17-2006 03:30 PM |
| How to uncompress zip files in a remote server from a script | rahul26 | Shell Programming and Scripting | 2 | 06-02-2006 02:14 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
rename files in remote server via ftp
Hi All,
I want to rename set of files in the remote server which iam unable to do . i can rename only one file at a time . for example ftp $REMOTESERVER { rename $NAME1 $NAME2 } is working whereas ftp $REMOTESERVER { rename $NAME1*.dat $NAME2*.data } is not working ... Its checking for the file $NAME1*.dat any suggestions |
|
||||
|
Yes, rename one file at a time.
You can't really have a wild card for the target unless you want the rename to replace an existing file. Also, any expansion of the wildcard would give multiple arguments, and rename can only really deal with two. |
|
||||
|
i dont know the file name
i dont know the file name - there will be files named like name 2 , name 34 , name 43564, name 355 so lets say i want to rename the files that start with name can i do it ... or is there any other way to change the extn alone.
|
|
||||
|
I'm dealing with the same issue save for the fact that I only have access to FTP on the remote machine. I'm running a script on a local Unix system and connecting to a FTP server on a windows box. What I need to do is move files from \today\*.PDF to \yesterday\*.PDF. All the files I'm moving are PDF's and there are other files in today's folder that I will not be moving. I tried using the "rename *.pdf \yesterday\*" gives the error:
Quote:
I would appreciate any help. Thanks in advance! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|