General :: Install Regexp Enabled 'rename' On Fedora?
Jun 26, 2011
I have a batch rename task and I find the 'rename' command in Ubuntu and Fedora is different.In Ubuntu, rename is written in Perl and has regexp support. Is there anyway to install it on Fedora?
I have 6GB of RAM and I'm planning to install Fedora 14 32-bit to achieve a higher degree of compatibility. Does fedora automatically download and install a PAE enabled kernel when it detects more than 4GB of RAM (Just like Ubuntu)?
Has anyone successfully kickstarted a rhel/fedora/centos over HTTPS ? In other words, is it possible to do the rhel/fedora/centos install from running apache with SSL enabled?
I need to compare 2 files using diff. The problem I've encountered is that I need to exclude certain lines that contain certain phrases. I know that diff supports the -I switch but no matter how I try to form the regexp it doesn't seem to work the way I expect it to. If anyone has used the -I switch before could you please post some examples of how it is used.
I need to exclude lines that contain the string "[skipthisline]" but I have no idea what syntax is used after the -I switch. Is is supposed to be included in quotes or slashes /[skipthisline]/ or entered without either? I need to include a backslash before each bracket so that it's not interpreted as a set of characters like [a-z] but is instead interpreted as a string. Do I need to use 2 backslashes? "\[skipthisline\]"
Is it sufficient to simply type the string I want to match or do I need to match the entire line in order to exclude it from the output?
How would I rename all files with a leading decimal point recursivley? I some how got all my music files to have a decimal point.I tried the below and got a " sed argument to long".[CODE]find /media/MUSIC -type f -name "*.wma" | xargs -0 sed -i 's/.(.*)/1/'[CODE]
Another question, can i just use -type f with out -name ? I am sure that all the files got the decimal point added as the first character.
Im using posfix as a outgoing mail server, here i want to distribute the mails to different ips to avoid the ip blacklisting. I found a solution by using multiple transports , but here one thing blocking me was i could not able to select a transport using regexp or pcre matching pattern, log says that
Code: Jun 5 07:12:49 server postfix/trivial-rewrite[6079]: warning: pcre map /etc/postfix/transport.pcre, line 1: regular expression substitution is not allowed: skipping this rule
I have about 300 files that need renaming, because the file system does not display the French characters properly. The dodgy letter in question has been replaced by a "question mark in a black diamond" symbol.No way of renaming, other then using mv in the Konsole has worked. Is there any way, script or program out there, that will do a batch rename?
I am interested in the following problem: given a string (pattern) find a regexp which match this pattern. I will need this for a developing of an idea 'pattern based filtration'.
I just downloaded a copy of the Old Testament onto my laptop from the Windows side of my desktop.Alas, all of the links are in lower case and all of the file names came across in upper.way to rename all of the files in a directory to be in lower case instead of upper?
I'm doing a clean install on a new machine, and when I tried to boot the install DVD, ISOLinux gave me the following error:
Code: Could not find kernel image: linux After some experimentation, I found that switching the SATA mode in the BIOS from AHCI to Native IDE solved the problem and installation is proceeding normally.
However, I want AHCI enabled. (I think, unless someone has a compelling reason why I shouldn't.) My web-searching suggests that if the system is installed in IDE mode, it won't boot if I switch to AHCI afterwards. Is this a common problem? Is there a workaround? Is it a motherboard issue?
I have a list of .jpg files from two cellphones that I would like to rename to the file creation date... but so far I can't seem to find a suitable script (or anything remotely close to what I need).
These are jpg's snapped on cellphone cameras, so no EXIF data exists.
I have a 21GB mounted partition /media/mydata. On my desktop it's labelled as "21 GB Filesystem". When I open it with Nautilus it's called "mydata". Is there a way of changing that label to "mydata" on the desktop?
I'm just installed Fedora 14 64-bits into a server which come with Multiple network interfaces, I'm found that the naming of each network interface is not in sequences in what I'm thought (e.g: the on board network interfaces name as Eth5 and Eth6, the additional card ethernet port name from Eth0 - Eth1 and etc). How to name the interfaces as what I wish to? What should I install to allow me to rename the interfaces.
I accidently created an account with the wrong username. I need to change it to something else. I never done this before but I think you can issue this command "usermod -l login-name old-name" which only changes the username nothing else.I know I will also need to change the home directory to reflect the changes but I am not sure what to do.
I need help with renaming files and folders in one go. I have a folder called /opt/utility/pictures/ Inside that folder have sub-folders and files such as code...
I've been spinning my wheels for a bit on this one not getting any traction. I have a list of pictures that have a bad extension that I would like to rename with the good extension. Here's a snippet of the list that I'm looking at:
listold Code: /Volumes/MyFiles/Pictures/2009/02 - February/Qeirstyn Playing Inside/._IMG_3347.JPG /Volumes/MyFiles/Pictures/2009/02 - February/Qeirstyn Playing Inside/._IMG_3349.JPG /Volumes/MyFiles/Pictures/2009/02 - February/Qeirstyn Playing Inside/._IMG_3350.JPG /Volumes/MyFiles/Pictures/2009/02 - February/Qeirstyn Playing Inside/._IMG_3354.JPG