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?

View 1 Replies


ADVERTISEMENT

Fedora Installation :: Automatically Download And Install A PAE Enabled Kernel When Detects More Than 4GB Of RAM

Jan 5, 2011

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)?

View 14 Replies View Related

Red Hat :: Kickstarting Over HTTPS - Do The Rhel/fedora/centos Install From Running Apache With SSL Enabled?

Aug 13, 2010

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?

View 1 Replies View Related

General :: Use Regexp In Diff / Exclude Lines That Contain The String "[skipthisline]"?

Feb 10, 2011

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.

diff -I "[skipthisline]" file1 file2 > output.diff

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?

.*[skipthisline].*

or

^.*[skipthisline].*$

View 2 Replies View Related

Programming :: Migrate Regexp From SED To AWK?

Apr 22, 2010

I have a sed script to search and replace a pattern on the next kind of text:

Code:
C/username/Mydocuments/games & music
C/username/Mydocuments/New files 09-17-2007
C/username/settings
The script is:
code....

View 9 Replies View Related

Software :: Rename Hidden Files / Rename All Files With A Leading Decimal Point Recursivley?

Jul 25, 2011

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.

View 14 Replies View Related

Ubuntu :: Regexp R-search In Bash

Jul 13, 2010

What keyboard shortcut will give me a regexp reverse search in bash? Or does C-r supply something like that already that I can't figure out?

View 4 Replies View Related

Software :: Sed And Regexp For Search In Multilines?

Sep 24, 2010

I've a text file which have a structure like:
<managed-data-source .....
name="nameDS"
/>
<connection-pool ....
code....

If you execute the previous command, you will see that it also displays connection-pool lines.

View 10 Replies View Related

Ubuntu :: Bash ${variables} : Replace Last Instance Of Regexp?

Mar 10, 2011

I have something like...

Code:
var=beer
# echo ${var/%e/E} doesn't do anything because i can only replace "r" or "er" this way

[code]....

View 1 Replies View Related

Server :: Postfix Mailserver Randomize Transports Using Regexp (using N)?

Jun 5, 2010

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

the transport used for this purpose is:-

Code:
#cat /etc/postfix/transport.pcre

/^.*@([a-z])ol.com$/ transport$1:

View 2 Replies View Related

Programming :: Bash: Regexp In 'if' Doesn't Evaluate Correctly

Mar 1, 2011

I'm using an 'if' statement to check whether one of positional arguments is a word or a construction like "x-y", but something doesn't seem right.

Here is the relevant part of the code:

Code:
if [[ "$3" =~ [a-Z]-[a-Z] || "$3" =~ [a-Z] ]]; then
grepRange=$3; else grepRange=$4
fi
And for the input like this:

[Code]....

but shouldn't the $grepRange variable be blank in this case?

Bash version is 4.1.7(1)

View 6 Replies View Related

Programming :: Bash Regexp String Compare Stopped Working?

Oct 20, 2010

Have a bash script which contains a line like this:

if [[ ${array[${last}]} =~ "screenpc.PRODUCTION.*" ]]

which WORKED as expected in bash 4.0.33 and now fails in 4.1.2

Instrumented the script to print the value of the left-hand side and it is exactly what is expected.

As noted above, this has been working fine until we installed Fedora 13 (kernel 2.6.33), and now it fails.

Tried setting shell 'extglob' to On with same results.

Did something change? Are there other shell/bash options that need to be set?this has the whole installation stopped!

View 10 Replies View Related

OpenSUSE Install :: Batch Rename Files With Special Characters?

Dec 10, 2010

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?

View 9 Replies View Related

Programming :: Write Regexp That Matches String That Begins With Whitespace Or Contains Newline?

Dec 10, 2010

How do I write a regexp that matches a string that begins with whitespace or contains a newline, but not necessarily both?

View 2 Replies View Related

Programming :: Inverse Regexp Matching / Developing Of An Idea 'pattern Based Filtration'?

Sep 3, 2010

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'.

View 3 Replies View Related

Fedora :: Mass Rename Of Files?

Jul 1, 2010

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?

View 4 Replies View Related

Fedora :: Rename An External Usb Drive?

Aug 11, 2010

Does anyone know how to rename an external usb hard drive?

View 3 Replies View Related

Slackware :: Can't Install From DVD With AHCI Enabled?

May 12, 2011

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?

View 3 Replies View Related

Fedora :: Rename JPG Files To Creation Date

Sep 2, 2009

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.

View 4 Replies View Related

Fedora :: Rename All Image Files To Folder.jpg?

Sep 26, 2009

I have all my music on an external HD and the filename and path of each file is in the format of the following

Code:
Ex HD Root / Music / Artist / Album / Artist - Album - Track No - Track Name.mp3
OCD I know

[code]...

View 2 Replies View Related

Fedora :: Rename Disk Label On Desktop?

Oct 13, 2009

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?

View 2 Replies View Related

Fedora Networking :: How To Rename Ethernet Interface

Jun 20, 2011

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.

View 2 Replies View Related

General :: How To Rename A Username

Nov 9, 2009

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.

View 4 Replies View Related

General :: How To Rename Files

Oct 20, 2010

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...

View 6 Replies View Related

General :: Rename The New Partition?

Nov 21, 2009

At the time of installation UBUNTU 9.04 ,I just create 4 partition from 80GB hddi.e

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6079 48829536 83 Linux
/dev/sda2 6080 9729 29318625 5 Extended

[code]...

View 11 Replies View Related

Fedora Security :: Rename Files With Command Line?

Apr 30, 2009

I have a bunch of mislabeled files among other things but I'll start with this first. as using the command line to fix this issue.

View 5 Replies View Related

Fedora :: Bulk Rename Files In A List Via Terminal?

Nov 12, 2009

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

[Code]....

View 6 Replies View Related

General :: Ssh Command To Rename Files?

Dec 22, 2009

What is the ssh commands to rename a group of files?

I need to rename:
avatar_01.jpg
avatar_02.jpg

[code]....

View 5 Replies View Related

General :: Rename A File Say Old.txt To New.txt Using Commands?

May 19, 2010

How would I rename a file say old.txt to new.txt in Linux using commands?

would it be...?

rename old.txt new.txt

View 2 Replies View Related

General :: How To Rename All Subfolders With Specific Name

Jun 11, 2010

How to go through all the subfolders and rename all the folders named 'Old' to 'New'

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved