LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2009, 08:53 AM   #1
solar05
LQ Newbie
 
Registered: Jun 2009
Posts: 9

Rep: Reputation: 0
sftp group file rename


I can rename one file via sftp.
Code:
rename file file.bak
How I can rename many files?
 
Old 07-16-2009, 10:43 AM   #2
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 9
Posts: 1,327

Rep: Reputation: 154Reputation: 154
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
 
Old 07-17-2009, 01:10 AM   #3
solar05
LQ Newbie
 
Registered: Jun 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mark_alfred View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to rename a vol group? binary_0011 Linux - General 18 01-13-2013 11:33 AM
Using Sed to Rename A Group of Files smithjb Programming 6 05-03-2009 10:27 PM
rename a group of files to a single extention Lleb_KCir Linux - General 9 02-20-2005 01:40 AM
Sftp permission and group problem dannykwok3000 Linux - General 4 09-07-2004 01:48 AM
chroot sftp user group bmeckle Linux - Newbie 0 06-02-2004 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration