LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sftp group file rename (https://www.linuxquestions.org/questions/linux-newbie-8/sftp-group-file-rename-740525/)

solar05 07-16-2009 07:53 AM

sftp group file rename
 
I can rename one file via sftp.
Code:

rename file file.bak
How I can rename many files?

mark_alfred 07-16-2009 09:43 AM

rename relies on perl expressions to rename multiple files. You'd have to know some basic perl expressions to effectively use it, I think. See the man page for rename.

Code:

man rename

solar05 07-17-2009 12:10 AM

Quote:

Originally Posted by mark_alfred (Post 3609623)
rename relies on perl expressions to rename multiple files. You'd have to know some basic perl expressions to effectively use it, I think. See the man page for rename.

Code:

man rename

Mark,
I do it on the bash becouse I put some files to remote host and must chmod them... But on remote host some script take files with .bak extension from my dir. That is why I need to put files with extension .tmp and then rename all files.


All times are GMT -5. The time now is 02:33 PM.