Doesn't the command line version of 'rename' has any function at all in 9.3 ?? -- Anders Norrbring Norrbring Consulting
On 2005-10-17 15:30 Bruce Marshall wrote:
On Monday 17 October 2005 09:15 am, Anders Norrbring wrote:
Doesn't the command line version of 'rename' has any function at all in 9.3 ?? --
Works for me.... what's wrong with it?
I can't make it do anything at all. No matter what I try, nothing happens. Example, I'm in a dir with a couple of php files, there I issue the command 'rename php *.old' Nothing will happen. I also tried 'rename index.php index.old', same result, nothing at all. The reason is that a little app I've downloaded uses the C/C++ function to move files from one directory to another. However, this doesn't work across device and partition boundaries.. The ultimate solution would be rewrite the application code to use 'rename' locally, if that fails, do a 'mv' or 'copy & delete'. However, I'm certainly not a programmer, so I can't alter the code myself. -- Anders Norrbring Norrbring Consulting
On Monday 17 October 2005 09:36 am, Anders Norrbring wrote:
On 2005-10-17 15:30 Bruce Marshall wrote:
On Monday 17 October 2005 09:15 am, Anders Norrbring wrote:
Doesn't the command line version of 'rename' has any function at all in 9.3 ?? --
Works for me.... what's wrong with it?
I can't make it do anything at all. No matter what I try, nothing happens.
Example, I'm in a dir with a couple of php files, there I issue the command 'rename php *.old'
Try: man rename The format for renaming all of your .php files in that directory to .old would be: rename .php .old *.php rename will look for the string of '.php' in all the *.php filenames, and change that to '.old' MAN is your friend.
On 2005-10-17 15:49 Bruce Marshall wrote:
On Monday 17 October 2005 09:36 am, Anders Norrbring wrote:
On 2005-10-17 15:30 Bruce Marshall wrote:
On Monday 17 October 2005 09:15 am, Anders Norrbring wrote:
Doesn't the command line version of 'rename' has any function at all in 9.3 ?? --
Works for me.... what's wrong with it?
I can't make it do anything at all. No matter what I try, nothing happens.
Example, I'm in a dir with a couple of php files, there I issue the command 'rename php *.old'
Try: man rename
The format for renaming all of your .php files in that directory to .old would be:
rename .php .old *.php
rename will look for the string of '.php' in all the *.php filenames, and change that to '.old'
MAN is your friend.
Yep, I saw it.. I also see now that the C/C++ 'rename' is structured in a different way, they're not at all related. Darn. -- Anders Norrbring Norrbring Consulting
On 10/17/05, Anders Norrbring
On 2005-10-17 15:30 Bruce Marshall wrote:
On Monday 17 October 2005 09:15 am, Anders Norrbring wrote:
Doesn't the command line version of 'rename' has any function at all in 9.3 ?? --
Works for me.... what's wrong with it?
Didn't even know such a tool exists. mv always served the prupose. BTW rename doesn't work for me either. \Steve
On Monday 17 October 2005 11:21 am, Steve Graegert wrote:
On 10/17/05, Anders Norrbring
wrote: On 2005-10-17 15:30 Bruce Marshall wrote:
On Monday 17 October 2005 09:15 am, Anders Norrbring wrote:
Doesn't the command line version of 'rename' has any function at all in 9.3 ?? --
Works for me.... what's wrong with it?
Didn't even know such a tool exists. mv always served the prupose. BTW rename doesn't work for me either.
\Steve
Try doing: mv *.php *.old Or: rename CD_ TAPE_ CD*.mp3 where in the last, only the first part of the filename is changed. -- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 10/17/05 11:34 + +----------------------------------------------------------------------------+ "It is now proved beyond doubt that smoking is one of leading causes of statistics." - Fletcher Knebel
On 10/17/05, Bruce Marshall
On Monday 17 October 2005 11:21 am, Steve Graegert wrote:
On 10/17/05, Anders Norrbring
wrote: On 2005-10-17 15:30 Bruce Marshall wrote:
On Monday 17 October 2005 09:15 am, Anders Norrbring wrote:
Doesn't the command line version of 'rename' has any function at all in 9.3 ?? --
Works for me.... what's wrong with it?
Didn't even know such a tool exists. mv always served the prupose. BTW rename doesn't work for me either.
\Steve
Try doing: mv *.php *.old
Or:
rename CD_ TAPE_ CD*.mp3
where in the last, only the first part of the filename is changed.
Yes sure. For countless years I have a one-liner at hand: for i in *.txt; do echo mv $i `basename $i .txt`.html; done Ok, ok. It's not that powerful, but whenever I needed something more advanced, sed/awk was the weapon of choice. Got to admit that rename would indeed be very handy, although not present on major Unices. \Steve
On Monday 17 October 2005 09:30 am, Per Jessen wrote:
Anders Norrbring wrote:
Doesn't the command line version of 'rename' has any function at all in 9.3 ??
Is there a rename GUI??
I don't whether MC (midnight commander) has this capability but it might.
Well, the command line version works really for renaming files ... :-)
?? That's what it does all right.
/Per Jessen, Zürich
Bruce, On Monday 17 October 2005 06:40, Bruce Marshall wrote:
On Monday 17 October 2005 09:30 am, Per Jessen wrote:
Anders Norrbring wrote:
Doesn't the command line version of 'rename' has any function at all in 9.3 ??
Is there a rename GUI??
I don't whether MC (midnight commander) has this capability but it might.
Sorry, but Midnight Commander is not a GUI program, it's a curses program. (This is 2005, right?) But there _is_ a GUI-based bulk / pattern-oriented renamer: KRename. On 10.0 it's at: KDE -> System -> File Manager -> Krename (Of course, on 10.0 we've got that great search capability integrated into the KDE menu so there's no need to specify the precise location of KDE menu entries anymore, is there?)
...
/Per Jessen, Zürich
Randall Schulz
On Monday 17 October 2005 10:30 am, Randall R Schulz wrote:
Bruce,
On Monday 17 October 2005 06:40, Bruce Marshall wrote:
On Monday 17 October 2005 09:30 am, Per Jessen wrote:
Anders Norrbring wrote:
Doesn't the command line version of 'rename' has any function at all in 9.3 ??
Is there a rename GUI??
I don't whether MC (midnight commander) has this capability but it might.
Sorry, but Midnight Commander is not a GUI program, it's a curses program. (This is 2005, right?)
I know that, but not all GUI's are written in QT3 or whatever. It *is* a GUI although maybe not point and click.
But there _is_ a GUI-based bulk / pattern-oriented renamer: KRename.
On 10.0 it's at:
KDE -> System -> File Manager -> Krename
(Of course, on 10.0 we've got that great search capability integrated into the KDE menu so there's no need to specify the precise location of KDE menu entries anymore, is there?)
...
/Per Jessen, Zürich
Randall Schulz
Bruce, On Monday 17 October 2005 07:43, Bruce Marshall wrote:
...
Sorry, but Midnight Commander is not a GUI program, it's a curses program. (This is 2005, right?)
I know that, but not all GUI's are written in QT3 or whatever. It *is* a GUI although maybe not point and click.
No, it *is not* a Graphical User Interface, and it's not a matter of which library it uses. If it were written using the Athena widget toolkit (which would look and behave in a very crude manner by today's standards) it _would_ be a GUI. But it uses only alphanumeric characters. The fact that they're placed in a coherent layout instead of being sent as a sequential stream is not enough to qualify its information presentation and interaction mode as "graphical."
...
Randall Schulz
On Monday 17 October 2005 10:59 am, Randall R Schulz wrote:
Bruce,
On Monday 17 October 2005 07:43, Bruce Marshall wrote:
...
Sorry, but Midnight Commander is not a GUI program, it's a curses program. (This is 2005, right?)
I know that, but not all GUI's are written in QT3 or whatever. It *is* a GUI although maybe not point and click.
No, it *is not* a Graphical User Interface, and it's not a matter of which library it uses. If it were written using the Athena widget toolkit (which would look and behave in a very crude manner by today's standards) it _would_ be a GUI.
But it uses only alphanumeric characters. The fact that they're placed in a coherent layout instead of being sent as a sequential stream is not enough to qualify its information presentation and interaction mode as "graphical."
You say tomato, I say ..........
On 10/17/05, Randall R Schulz
Bruce,
On Monday 17 October 2005 07:43, Bruce Marshall wrote:
...
Sorry, but Midnight Commander is not a GUI program, it's a curses program. (This is 2005, right?)
I know that, but not all GUI's are written in QT3 or whatever. It *is* a GUI although maybe not point and click.
No, it *is not* a Graphical User Interface, and it's not a matter of which library it uses. If it were written using the Athena widget toolkit (which would look and behave in a very crude manner by today's standards) it _would_ be a GUI.
But it uses only alphanumeric characters. The fact that they're placed in a coherent layout instead of being sent as a sequential stream is not enough to qualify its information presentation and interaction mode as "graphical."
What if these alphanumeric characters are displayed on a display driven by a framebuffer device? Yeah, just havin' some fun here... \Steve
participants (5)
-
Anders Norrbring
-
Bruce Marshall
-
Per Jessen
-
Randall R Schulz
-
Steve Graegert