Re: The rename command…



Johnny Rosenberg wrote:


When I was searching for a solution to my problem (which I now consider
solved) I think I ran into a solution without the rename command… I think
they used mv instead, but I can't find it.

Is there a reason not to use rename (such as it might be slow or something,
maybe even incompatibility with non-Debian based systems)? I realise that I
need regular expressions to achieve the name change, which makes rename the
convenient choice, but there should be other ways, shouldn't it?

Unfortunately I never bookmarked the site where I found it (or THINK I found
it…).

J.R.


There is a standard linux rename command. Unfortunately, Debian
replaces it with the Perl "prename". This is problematic because the
syntax between standard linux rename and prename is very different, and
therefore you can't write a script with rename that will work with
default debian distros and other distros. (you can search this list for
a recent long discussion I had with myself on the subject of rename)

ps: well, that's not technically true. You could write a script that
checks for the appropriate command and sets it as a variable, that would
work across distors, but I think you get my point.

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Relevant Pages

  • Re: Recently used file list in Word 2003
    ... I did some searching on the web and found where a site where it said that the ... It said to rename the file to ... When you click on Oldbubbie.doc in the list, Newbubbie.doc opens ... I start to worry about file, folder, and disk corruption. ...
    (microsoft.public.office.misc)
  • Re: Active directory
    ... The script linked is supposed to do both, ... The script called "Rename a Computer Account" renames the AD object, ... The script called "Rename a Computer and Computer Account" renames both. ... This should be more efficient than searching. ...
    (microsoft.public.scripting.wsh)
  • Re: Windows 2000 Pro - KB924191- 0x80070002
    ... What does "Rename the SoftwareDistribution directory" do? ... I do not get the 70002 error when searching for updates. ... Windows Update, from Microsoft Update, or from Windows Server Update Services ... Enhancing file system performance: http://www.diskeeper.com/defrag.asp ...
    (microsoft.public.windowsupdate)
  • Please read and help if you can - AD Behaving Badly
    ... The problem appears when using the find option when searching for a user or ... The user or computer is found and listed in the results pane of the window. ... actions that can be taken with this user account (Rename, ... the user account is double clicked the rename window and not the properties ...
    (microsoft.public.win2000.active_directory)
  • Domain Renaming Tools Problem
    ... the 1st and 2nd link, i am able to do it, and the rename have changed. ... and when i copied the domainlist-save.xml and paste it into the same folder ... An error occur while searching for the Organization Container ...
    (microsoft.public.windows.server.active_directory)