Sponsored Content
Top Forums Shell Programming and Scripting rename files in remote server via ftp Post 302150933 by porter on Thursday 13th of December 2007 04:05:07 AM
Old 12-13-2007
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.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP multiple files from remote server to local server

Hi, I am facing a weired problem in my FTP script. I want to transfer multiple files from remote server to local server everyday, using mget * in my script. I also, want to send an email for successful or failed FTP. My script works for file transfer, but it don't send any mail. There is... (2 Replies)
Discussion started by: berlin_germany
2 Replies

2. UNIX for Dummies Questions & Answers

Can I copy files on remote server with ftp ?

I just realize the only way is to download and upload again.. is not possible to copy them remotely with the ftp protocol ? thanks (2 Replies)
Discussion started by: aneuryzma
2 Replies

3. Shell Programming and Scripting

preserving the timestamp of a file when copied from remote server to local server using ftp

Hi, I need to copy few files from remote server to local server. I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed. ... (5 Replies)
Discussion started by: arunkumarmc
5 Replies

4. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

5. Shell Programming and Scripting

ftp'ing multiple files to the remote server

unix shell script (2 Replies)
Discussion started by: giridhar276
2 Replies

6. Shell Programming and Scripting

FTP files from different directory from remote server to one directory in local

Hi All, I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Discussion started by: dassv
3 Replies

7. Shell Programming and Scripting

Copy down remote files and rename them to include the server name with full path

I need to pull down a good bit of files for another support team for an upgrade project. I have a server.list with all of the server names. I need to do two parts: FIRST: I have this example, but it does not list the server name in front of each line. #! /bin/bash for server in $(<... (10 Replies)
Discussion started by: asnatlas
10 Replies

8. Shell Programming and Scripting

Rename Files in remote directory

Hi All, I am creating a script which will connect to remote server with ssh and perfom below. - Search in a directory - Search for a pattern - Check the size if greater than the size_limit rename the file. Below is the code i have written. ssh user@host <<EOF find /tmp... (5 Replies)
Discussion started by: Girish19
5 Replies

9. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies

10. Shell Programming and Scripting

Rename (move) multiple files on remote server using sftp

I want to rename (move) multiple files on remote server. I tried the following command to move all TXT files from my_dir directory to /new_dir. But it does not work. Any help? #!/bin/ksh sftp -dev3 << ABC cd my_dir $(for i in TXT; do echo "ls *.$i" ; rename $x /new_dir/$x;... (1 Reply)
Discussion started by: Soham
1 Replies
lltag_config(5) 						File Formats Manual						   lltag_config(5)

NAME
config - Configuration file for lltag DESCRIPTION
The following options may be stored in /etc/lltag/config or the user's $HOME/.lltag/config, or in any file passed with --config. Such a configuration file may also be generated with --gencfg. Obtaining tags format = "string" Add a user-defined format [-R]. Might be used multiple times. Default is to guess if no user-defined formats and no default field values are given. guess = <0/1> Try to guess if user-defined formats do not match [-G]. Default is 0 (disabled) when no user-defined formats and no explicit values are given. tag = <TAG=value> Add an explicit tag [--tag]. Might be used multiple times. Tweaking filename parsing no_path = <0/1> Do not use file path when matching filename [-p]. Default is 0 (disabled). spaces = <0/1> Allow no or multiple spaces [--spaces]. Default is 0 (disabled). Cleaning obtained tags edit = <0/1> Edit tags immediately [--edit]. Default is 0 (disabled). maj = <0/1> Upcase first letters of words in tags [--maj]. Default is 0 (disabled). regexp = "s/from/to/" Replace from with to in all tags. title,number:s/from/to/ replaces in title and number tags only. Might be used multiple times [--regexp]. Default is to not apply any regexp. sep = "string" Replace |-separated strings with space in tags. Default is to not replace any separator. Configuration of tag application type = <mp3|ogg|flac|none> Force mp3, ogg of flac instead of by-extension detection [--mp3, --ogg and --flac]. Default is none. clear_tags = <0/1> Clear all tags of audio files. [--clear]. Default is 0 (disabled). append_tags = <0/1> Append tags only instead of replacing old ones. [--append]. Default is 0 (disabled). no_tagging = <0/1> Do not actually tag files [--no-tagging]. Default is 0 (disabled). preserve_time = <0/1> Preserve file modification time during tagging [--preserve-time]. Default is 0 (disabled). Renaming rename_format = "string" Rename file according to format [--rename]. Default is to not rename. rename_min = <0/1> Lowcase tags before renaming [--rename-min]. Default is 0 (disabled). rename_regexp = "s/from/to/" Replace from with to in all tags before renaming. title,number:s/from/to/ replaces in title and number tags only. Might be used multiple times [--rename-regexp]. Default is to not apply any regexp. rename_sep = "string" Replace spaces with a string in tags before renaming [--rename-sep]. Default is to not replace any separator. rename_slash = "string" Replace slashes with a string in tags before renaming [--rename-slash]. Default is to replace with a dash. rename_ext = <0/1> Assume the rename format provides an extension [--rename-ext]. Default is 0 (disabled). Miscellaneous dry_run = <0/1> Do nothing but show what would have been done [--dry-run]. Default is 0 (disabled). yes = <0/1> Tag without asking for confirmation when guessing and rename without asking for confirmation [--yes]. Default is 0 (disabled). ask = <0/1> Always ask for confirmation before tagging [--ask]. Default is 0 (disabled). recursive = <0/1> Recursively traverse all given subdirectories [-R]. Default is 0 (disabled). verbose = <integer> Message verbosity level [-v and -q]. Default is 0 (only important messages). Other possible values are 1 (show usage information when a menu is displayed for the first time) and 2 (always show usage information before a menu appears). CDDB configuration cddb_server_name = hostname Change the CDDB server name. Default is www.freedb.org. cddb_server_port = <port> Change the CDDB server port. Default is 80 (HTTP). SEE ALSO
lltag(1) The config template file provided within the documentation directory. AUTHOR
Brice Goglin NOVEMBER 2006 lltag_config(5)
All times are GMT -4. The time now is 09:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy