"rename" default implementation in Arch

Hi there
As far of I know, most of recent systems use the "rename" script from larry Wall ( Perl dad ).
Why don't using it as default "rename" like most of modern systems ? I use Debian/redhat systems most of the time @work, and I was wasting some time to understand that Arch implement "rename" in an other way. I'm pretty sure I'm not the first one, and not the last one too.
( For thoses wanting the original perl script from Perl dad, download http://search.cpan.org/CPAN/authors/id/ … 1.6.tar.gz and add it in your $PATH before /usr/bin I use a custom ~/bin dir for that kind of stuff  or see aur/perl-rename )
See ya.
Last edited by sputnick (2009-11-20 00:49:30)

@Xyne : prename is an extract of debian package, it's not needed. The good one is perl-rename http://aur.archlinux.org/packages/perl- … e/PKGBUILD and it's quite maintened.
I like Arch in part because it use powerfull modern tools and keep users to decide what is good or not ( like non-free stuff ).
Using something different of Perl rename doesn't makes sense for me, and I think some others users and sysadmins too.
Edit : Debian default is Larry Wall original script with small changes, his name under debian is prename.
That's what my debian chroot said :
# echo 'readlink -f $(type -p rename)' | chroot /home/chroot bash -s
/usr/bin/prename
The perl-rename ( PKGBUILD based on CPAN ) is an improved one, ( written by Peder Stray, original script from Larry Wall ) the help output confirm that ( code too ):
# /usr/bin/perlbin/site/rename --help
Usage: rename [OPTION]... PERLEXPR FILE...
Rename FILE(s) using PERLEXPR on each filename.
-b, --backup make backup before removal
-f, --force remove existing destinations, never prompt
-i, --interactive prompt before overwrite
-S, --suffix=SUFFIX override the usual backup suffix
-v, --verbose explain what is being done
-V, --version-control=WORD override the usual version control
-n, --just-print, --dry-run don't rename, implies --verbose
-l, --link-only link file instead of reame
--help display this help and exit
--version output version information and exit
The backup suffix is ~, unless set with SIMPLE_BACKUP_SUFFIX. The
version control may be set with VERSION_CONTROL, values are:
t, numbered make numbered backups
nil, existing numbered if numbered backups exist, simple otherwise
never, simple always make simple backups
Report bugs to [email protected]
debian (p)rename :
# chroot /home/chroot rename --help
Unknown option: help
Usage: rename [-v] [-n] [-f] perlexpr [filenames]
Last edited by sputnick (2009-11-20 01:39:03)

Similar Messages

  • Configuring Kodo default implementation for field of Collection type

    If I am not mistaken default implementation for field of Collection type in
    Kodo is
    LinkedList based proxy. It would be great if it were possible to configure
    Kodo to use a proxy of my choosing
    I did some tests and it seems to me that ArrayList is much more efficient
    than Linked list (see below)
    Is there any specific reason I am not aware of that makes LinkedList better
    than array list
    In my applications all collections a relatively small (or at least most of
    my collections are definitely small)
    and since I use Collection interface there is no inserts into middle of my
    collections - only appends (which ArrayList handles very well)
    So my question is can I make Kodo to use ArrayListProxy for fields of
    Collection type
    (except of course using ArrayList field instead of Collection which I do not
    want to do)
    below is some statistics on collection performance (populating and iterating
    collections)
    the same test against 3 collections implementations (JDK 1.4.1)
    Not only ArrayList by far the fastest and memory friendly it also garbage
    collected much sooner and better -
    I show here max memory consumption and last to would not be garbage
    collected till all memory is in use (old generation GC)
    and ArrayList seems to be collected by young gen GC because it was collected
    very quickly between test cycles why other only when all memory was used
    So please make ArrayList your default collection implementation :-)
    Small collection size (40)
    time(ms) memory(kb)
    ArrayList 5,218 62,154
    LinkedList 14,125 240,066
    HashSet 27,000 311,825
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 8937, 53591
    LinkedList 15047, 240066
    Larger collection size (200)
    ArrayList 4860, 47709
    LinkedList 18468, 290704
    HashSet 34391, 422282
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 11844, 47709
    LinkedList 25766, 290704

    You should be able to accomplish this fairly easily by extending
    SimpleProxyManager:
    http://solarmetric.com/Software/Documentation/2.4.3/docs/javadoc/com/solarmetric/kodo/util/SimpleProxyManager.html
    and overriding the appropriate methods (getCollectionCopy and
    getCollectionProxy).
    On Mon, 12 May 2003 12:26:21 -0400, Alex Roytman wrote:
    If I am not mistaken default implementation for field of Collection type in
    Kodo is
    LinkedList based proxy. It would be great if it were possible to configure
    Kodo to use a proxy of my choosing
    I did some tests and it seems to me that ArrayList is much more efficient
    than Linked list (see below)
    Is there any specific reason I am not aware of that makes LinkedList better
    than array list
    In my applications all collections a relatively small (or at least most of
    my collections are definitely small)
    and since I use Collection interface there is no inserts into middle of my
    collections - only appends (which ArrayList handles very well)
    So my question is can I make Kodo to use ArrayListProxy for fields of
    Collection type
    (except of course using ArrayList field instead of Collection which I do not
    want to do)
    below is some statistics on collection performance (populating and iterating
    collections)
    the same test against 3 collections implementations (JDK 1.4.1)
    Not only ArrayList by far the fastest and memory friendly it also garbage
    collected much sooner and better -
    I show here max memory consumption and last to would not be garbage
    collected till all memory is in use (old generation GC)
    and ArrayList seems to be collected by young gen GC because it was collected
    very quickly between test cycles why other only when all memory was used
    So please make ArrayList your default collection implementation :-)
    Small collection size (40)
    time(ms) memory(kb)
    ArrayList 5,218 62,154
    LinkedList 14,125 240,066
    HashSet 27,000 311,825
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 8937, 53591
    LinkedList 15047, 240066
    Larger collection size (200)
    ArrayList 4860, 47709
    LinkedList 18468, 290704
    HashSet 34391, 422282
    the same but using using random inserts - append(index, object) rather than
    append(object):
    ArrayList 11844, 47709
    LinkedList 25766, 290704

  • Default implementations of JPDK V2 classes and interfaces - is the source code?

    Hi
    Is the source code for all the default implementations of the JPDK interfaces, renderers etc. available somewhere?
    Regards
    Harry

    Please find jpdk samples sources for jpdk implementation under src.zip inside PDK.zip
    In addition, one can many articles related to PDK under articles folder.

  • Default Implementation for PersistenceProvider

    I am going to test my persistence layer outside of Java EE server.
    Using jboss embedded ejb server, I write a persistence.xml with the following:
    <provider>
    org.hibernate.ejb.HibernatePersistence
    </provider>
    <transaction-type>RESOURCE_LOCAL<transaction-type>
    Is there any default ORM in jboss server or reference implementation, so I can remove hibernate from my test environment?
    i.e. is there any default implementation for PersistenceProvider.

    I am going to test my persistence layer outside of Java EE server.
    Using jboss embedded ejb server, I write a persistence.xml with the following:
    <provider>
    org.hibernate.ejb.HibernatePersistence
    </provider>
    <transaction-type>RESOURCE_LOCAL<transaction-type>
    Is there any default ORM in jboss server or reference implementation, so I can remove hibernate from my test environment?
    i.e. is there any default implementation for PersistenceProvider.

  • Default implementation of mouse drag event?

    Is there any Default implementation of mouse drag event?
    Say if the developer does not override and implement mouse drag event, still when the frame is dragged, the frame gets repainted itself in the new position. It indicates some default implementation of mouse drag event, but am unable to find out where it has been implemented.
    Why bother when everything works fine? I have a requirement to move my non-modal dialog when the frame is being dragged to another location. I tried adding mousemotionlistener to the frame, to the panel inside a frame, but the event does not reach my custom implementation of mousedrag event.
    Any clues?

    Moving the frame is a different listener: ComponentListener; add one to the frame. The frame's window decorations are OS territory, so I'm not sure if there's system dependence. I seem to vaguely remember some systems sending an event only after done moving, while others send the event as the frame moves.

  • Overriding default implementation of TrustManager class

    The IBM JSSE provider's default TrustManager implementation doesn't allow anonymous cipher suites.
    http://www-128.ibm.com/developerworks/library/j-ibmsecurity.html?ca=drs-j4304
    I want to override it, so that anonymous cipher suites can be allowed.
    Does anyone know how to do this.
    Thanks,
    JVR

    A custom renderer needs to extend the abstract class
    javax.faces.Renderer and supply five methods. Four of
    them (encodeXXX and decode) make perfect sense, but
    the fifth one (getClientId) isn't in the same league.
    Wouldn't most renderers want to use the standard
    mechanism?
    Thanks for the feedback.
    This issue is already on the Expert Group's radar as an issue to be addressed. I would not be at all surprised if we end up with a standard base class for Renderers that includes a default implementation for things like getClientId().
    Craig

  • How can I reboot a default install of arch remotely?

    I set up an arch box at school today, and it was the last day of school. I got it all set up the way I wanted, including openssh and the proper entry in rc.conf.
    Imagine my expression when I realized that I forgot to start sshd, and didn't reboot the box.
    I would like a way to use another box at school to reboot the arch box. I removed the default deny all in hosts.deny, and installed some stuff. I didn't reboot the box or start the daemons. Everything I need to start is in rc.conf, so a reboot is all that should be necessary.
    Is there a security hole that I can use in the default install that will allow me to reboot the box?
    School's out for summer break and I can't get back to the server room for a while.

    You will have to use the social conditioning security hole for this one.  Call up the secretary/janitor/security person and ask them to power cycle the box.

  • Can we rename default 'ok' button in a dialog box??

    In dialog box generated below,I don't want the default ok button displayed,is it possible to remove it??or is there any way to rename it and change its position by using a layout manager??
    import javax.swing.*;
    public class DialogBoxDemo
    public static void main(String args[])
        JPanel panel=new JPanel();
        JPanel leftBox=new JPanel();   // left panel with a box layout
        leftBox.setLayout(new BoxLayout(leftBox,BoxLayout.Y_AXIS));
        JTextField textfield = new JTextField(10);
        leftBox.add(textfield);
        JTextField textfield1 = new JTextField(10);
        leftBox.add(textfield1);
        JCheckBox cb = new JCheckBox();
        leftBox.add(cb);
        JPanel rightBox=new JPanel();  // right panel with a box layout
        rightBox.setLayout(new BoxLayout(rightBox,BoxLayout.Y_AXIS));
        JButton but1=new JButton("Find Next");
        JButton but2=new JButton("Cancel");
        rightBox.add(but1);
        rightBox.add(but2);
        panel.add(leftBox);
        panel.add(rightBox);
        JOptionPane.showMessageDialog(null,panel,"Replace",JOptionPane.INFORMATION_MESSAGE);
    }It is possible to use default ok button instead of creating a cancel button,but I don't want a button there.I want a button in the rightBox panel which is set in a Box Layout...
    Thanks in advance...

    To rename buttons, try:
        UIManager.put("OptionPane.cancelButtonText", "Your text");
        UIManager.put("OptionPane.noButtonText", "Your text");
        UIManager.put("OptionPane.okButtonText", "Your text");
        UIManager.put("OptionPane.yesButtonText", "Your text");You can rename ok button to...for instance "cancel", but in fact, this will not change its value...Your new cancel button will be JOptionPane.OK_OPTION
    sorry it's quite late to reply for this, but other googling people might find this topic with exact problem or a little similar.

  • Import renaming default preference -- does it exist?

    I think the title says it all: auto renaming has now gotten me into trouble a few times.  I would rather forget to rename and have to do so later, rather than forget I did rename, which is when the dupe names start to pile up.  But I don't see a choice in the preferences tabs to make the default that the renaming box is unchecked.

    See this tutorial:
    http://tv.adobe.com/watch/learn-lightroom-5/file-renaming-options-in-adobe-photoshop-light room-5/

  • Bash 'rename' utility different in Arch & Ubuntu

    The rename command in bash on my ubuntu box allows for Perl regular expressions for mass renaming of files:
    Synopsis: 
    rename perlexpr [ files ]
    The rename command in Arch bash is a more simple one:
    Synopsis:
    rename from to [ files ]
    Is it possible to get the ubuntu version of 'rename' for arch ??

    alphahsk wrote:Is it possible to get the ubuntu version of 'rename' for arch ??
    Yup, it is now available in the AUR.
    For further information on the topic, you might want to look at this thread.

  • What is the default swapiness of Arch? And how can I change it?

    Actually, i'm only assuming my swap is even working, because it never seems to use it, except when I hibernate/suspend.
    Does Arch use a "swapiness" value like Ubuntu does? What is it by default? I think Ubuntu's was either 60 or 80.

    I'm not sure what the default swappiness is, since I've modified mine. If you've got a system installed and haven't touched anything you can find the default swappiness by doing
    cat /proc/sys/vm/swappiness
    as root. To adjust the swappiness, put
    vm.swappiness = N
    in the file /etc/sysctl.conf where N is between 1 and 100 (I believe.) Lower swappiness means that Linux will require higher memory pressure before it starts swapping things out.
    Regards,
    j

  • Renaming default Datacenter, Cluster, and Datastore object names in EVO:RAIL

    Hello,
    The Datacenter, Cluster, and vSAN Datastore objects in my newly-installed EVO:RAIL appliance all default to a label of "MARVIN-...". Is it safe to rename these labels appropriate to my environment, such as a geographic location for my Datacenter object? I suspect that it is okay because the underlying UID will not change, but am looking for confirmation from someone who has successfully done this in a lab or production environment and who has also been successful in applying EVO:RAIL patches afterward.
    Thanks in advance.

    Just to close the loop, I successfully renamed the datacenter, cluster, and vSAN objects in vCenter Server.
    I kept a close watch on Log Insight at each step, and did log one error that I found suspicious following the object rename of the vSAN datastore:
    2015-01-29T19:03:27.158Z <My 4th Host's FQDN> Hostd: [783C2B70 info 'DiskLib'] DISKLIB-LINK :DiskLinkGetSpaceUsedInfo: Failed to get the file system unique id for file vsan://118eb054-f123-469a-d542-XXXXXXXXXXXX, using id as "remote"
    Where in my case the 4th host happens to currently be the HA master. I'm guessing this was just a transient error as it hasn't reappeared in the last 30 minutes, but I'll keep an eye out for it. There was no corresponding error viewed in vCenter Server, and I seem to be able to refresh the vSAN storage counter without issue.
    Thanks again.

  • Possible to rename default scratch folders?

    Hi all,
    We've just streamlined our directory structures at work and all is good ASIDE from FCP's scratch settings. I have a problem with the default setting of RAID>Capture Scratch>PROJECT because it makes backing up unduly difficult. All the other media is sitting in RAID>PROJECT, hence backing up is a basic one-step copy/paste procedure.
    Now the obvious way around it is to remap the scratch settings every time I open a different project, like so: RAID>PROJECT>Capture Scratch. But this leaves a redundant and unnecessary folder within Capture Scratch. Is there any way to tell FCP NOT to create a project subdirectory under Capture Scratch?
    And while we're on the subject, we use an uppercase, underscore only system so is it also possible to force FCP into following this protocol? I know its no big deal, but if possible it would sure save renaming the folders and reconnecting every project.
    Thanks for reading, I'm guessing the answers are no and no.
    G5   Mac OS X (10.4.2)  

    Hi 138
    I honestly don't see the problem.
    If you always select RAID in the Capture Scratch preset in FCP, then all Captured material will allways be in RAID > FINAL CUT PRO DOCUMENTS > Project_name.
    As long as you give your project a name (with underscores in your case) BEFORE starting to capture, all captures will always be in that folder.
    Even easier for backup is to know that all Timecode related Media is in that folder, while you can put all the other stuff (graphics etc) in your own RAID > project_name folder. You then can make the choice to only backup the latter and don't backup the videomedia and keep the cameratapes instead.
    Rienk

  • Renaming default install of cfusion

    Please help.
    I have two web servers running Windows 2003 R2 NLB and
    ColdFusion MX 7.0.2 multi-server configuration. I am trying to set
    up a CF cluster between the two and have found that I must rename
    one of the CF installs. I have renamed the
    {jrun-root}/servers/cfusion directory to
    {jrun-root}/servers/cfusion2 and have modified the
    {jrun-root}/lib/servers.xml file to show:
    <server>
    <name>cfusion2</name>
    <directory>{jrun.home}/servers/cfusion2</directory>
    </server>
    Once this is done, however, I am unable to start the
    Macromedia JRun CFusion Server service (nor either of the
    ColdFusion ODBC services). The cfusion-out.log shows:
    "JRun server "cfusion" does not exist, the server root null
    was not found. Please verify that the C:\JRun4\lib\servers.xml file
    contains valid data for this server."
    I've seen where others have mentioned changing the default
    install of cfusion to cfusion1 and/or cfusion2, but no one who has
    encountered problems while doing so. Is there something I've
    missed? Are there more files that I need to change?
    Any assistance would be greatly appreciated.

    do not cluster the cfusion instances
    Create an cf instance on each machine, each having different
    names, and cluster those instances.

  • Renaming default report server OC4J container

    Hi all,
    I have recently had to re-install my 2 app servers from scratch ( dont ask please !!) they are Oracle 10g App Server ver 9.0.4.1.0 and both look at the same underlining DB.
    Before "everything went wrong......." the Report Server container was named to repserver1. Which meant switching between app servers was a bit easier. now after the default installations on both App servers are called rep_ap-1 or rep_ap-2.....does anyone know how to switch these back or even rename them ?
    Thanks in advance,
    Jason

    hi
    u have to start the report sever before displaying report.
    and its better if you start your report server something like this.
    rwserver  server=server_name startbecause if you use batch=yes sometime cause of using batch=yes you will get error.So better to use the above command.
    hope it helps you.
    sarah

Maybe you are looking for

  • Folders in Outlook 2010

    Hi, Our company just changed domain names as part of a rebrand and in the process acquired new email addresses.  Our new email address are IMAP/SMTP accounts.  I was able to set them up but noticed that the new accounts don't have the traditional "ju

  • Playing video in iTunes... Video NO Audio?

    yes yet another newbie to iPoding. I have a new 30GIG Ipod video player and have downloaded the latest version of iTunes. i have successfully downloaded a music video into iTunes and transferred the music video over to my iPod. i can play the music v

  • Dynamic Radio Buttons

    am BRAND SPANKING NEW to java and I have a site (created by someone else obviously) which shows 2 text boxes dynamically depending on a number that is entered into the "NumAdults" box. So if you enter "2", you get: age.text box, tripcost.text box, ag

  • Why is the rear-facing camera of my iPad mini not working?

    The backward facing camera on my iPad mini has stopped working recently after having it for a bit over a year, i.e. when I go into the camera application the screen freezes when trying to take photos with the rear-facing camera. Any ideas what this i

  • KE30 Not Updated

    Dear All, I work with flexible planning and info  structure S891 , my issue is when i transfer from Planning to Profitablity analysis KE30 The data transferred  there not updated I mean if i delete Member from MC94 and Retransfer again i still found