General :: Where To Find Rhce Dumps Of New Pattern

Aug 27, 2010

wher i wil find rhce dumps of new pattern.

View 3 Replies


ADVERTISEMENT

General :: Find Pattern After Specific Pattern

Oct 11, 2010

I want to go through a log file and find pattern1 and then a pattern2 only after pattern 1.So for example I want to know howManyRecords was in 13:30.I figured I grep for "start time for the job" and then only after that (and before the next occurence of that) grep for "howManyRecords". Is this a sane way?

View 1 Replies View Related

General :: Find Pattern And Comment Out 2 Lines After It?

Oct 14, 2010

How do yo find a pattern with sed or awk and then:

- add a # at the beginning of the line containing it

- and add a # at the beginning of the following 2 lines, too?

Say, I want to comment out the line containing "which 0launch" and the two lines following it:

if [ -x "`which 0launch`" ]; then
exec 0launch http://rox.sourceforge.net/2005/interfaces/ROX-Filer -S
fi

Expected result:

#if [ -x "`which 0launch`" ]; then
# exec 0launch http://rox.sourceforge.net/2005/interfaces/ROX-Filer -S
#fi

I need this because I do not want to comment out every line containing "fi", just the "fi" of this specific if statement.

View 3 Replies View Related

General :: Add (not Replacing) A Pattern Match With A Similar Pattern?

Aug 30, 2009

I'm writing a bash script to search html files, and when I find any occurrence of an img src tag like this:

<img src="123-picture-normal.jpg" alt="some random user entered text" border="0">

I want to add a second line below it that looks like:
<img src="123-picture-thumbnail.jpg" alt="some random user entered text" border="0">

All I need to do is duplicate the line but replace "normal" with "thumbnail"

Each file can have multiple img src tags with different numbered jpgs.

I have a feeling this is a job for sed, but I'm struggling with it. Any ideas?

View 2 Replies View Related

General :: Find File With Dir/file Pattern?

Jul 26, 2011

i'm just curious if i can search for the dir/file pattern in the single "find" command?
here is an example:

dir1/dir2/dir3/file.txt
dirXX/dirYY/dir2/dir3/file.txt
dir1/dir4/dir3/file.txt

i want to search for the pattern "dir2/dir3/file.txt"

View 12 Replies View Related

Programming :: Find Pattern That Extends Over Several Lines?

Jun 12, 2011

Is there a convenient method to find a text pattern that extends over several lines? In this case:

Empty line
LineConsistingOfSingleWord

Preferably to return the line number where the pattern occurs to determine the first such after a known line number. In other words, in order to extract a block of text from within a file.

View 3 Replies View Related

Programming :: Sed: Find Pattern And Delete 5 Lines After It?

Mar 23, 2010

I am trying to edit a print file.

For every occurence of the ^L form feed character I need to remove 5 blank lines after it but still keep the ^L.

I am a rare user of sed and am ok with the basics but am struggling with this.

View 4 Replies View Related

Programming :: Use Sed To Find String Pattern And Delete Subsequent Characters?

May 3, 2010

I have a file with a number of strings like the ones below

string1#m1asdfe23easdf23wefas
string2#mfaaeb2vr1rhserh
anotherstring#ji89ensrsegr
anotherone#m1ynmdt324nsdt

I'm trying to delete everything after #** so that

string1#maasdfeaveasdfawefas
string2#mfaaebvrserhserh
becomes
string1#ma
string2#mf

tried sed 's/#..*//g' but as you all will know it returns string1, string2 etc.

View 12 Replies View Related

Programming :: Search A File For A Particular Pattern And If Pattern Found Replace The Line With New Text?

Feb 24, 2010

I want to search a file for a particular pattern and if pattern found replace the line with new text. i am using awk 'match($0,"pattern") != 0 {print $0} ' filename to check if the pattern exists.how do i get the line number of the pattern and delete that line and replace the line with my new text?

View 1 Replies View Related

General :: New Install Dumps To Grub CLI?

Nov 11, 2010

I am trying to make a clean install of linux on three new 500G HDs. Because the last failure caused loss of my wife's pictures, I'm in the dog house. I know, I know. Back-up, back-up, back-up.I'm trying to set up a Raid 5 as partial insurance against disk failure (along with a frequent back up schedule). A friend suggested that I put 4-5 partitions in the raid array to aid in recovery if a disk fails (/boot, /, /var, /home, and swap). I know that swap doesn't get 'raided'. I've looked at 50+ tutorials on how to set up raid5 from a clean install and after installing the whole system. Nothing has helped or even addressed this issue so far.

Problem is that I have now tried installing 4 different flavors of linux (Ubuntu, Mint, and a couple of distros of Fedora) with the custom disk partitioning as mentioned above. I've tried installing grub on the MBR and the first partition (/boot). I've ensured that it pointed to the correct partition to find the kernel (/). I've tried everything that I can think of, and at every reboot, I get dumped to the grub CLI after bios post, regardless of distro. I cannot get the system to load the kernel.

View 3 Replies View Related

General :: Latest Dumps Of RHEL-5?

Apr 13, 2010

If anybody is having latest dumps of RHEL-5

View 2 Replies View Related

General :: What Is The Process To Become A RHCE

Jan 23, 2010

what is the process to become a RHCE and what will be the exam fee for the same in india?

View 1 Replies View Related

General :: What After RHCE Certification?

Mar 27, 2010

What can i do to prepare for job on linux?how can i prepare what should i read i rhce but still need to read more about qmail postfix and all?how get information about it?

View 13 Replies View Related

Programming :: If Statement Pattern Search / End Of Pattern Special Character?

Apr 29, 2010

I have to enhance the behaviour of a backup script written in perl. I don't need to change it, what I need to do is to create a bash script that does some checks like file name and file size, execute the backup script then check if the backup files match the original files.Here's how I try to do it:

- read the files from the original files folder
- store them in an array
- search in the array the files that have a specific file extension
- store the file names that match the search pattern (I know the backup script skips some files so I can hardcode the search pattern)
- run the backup script
- read the files from the backup folder
- store them in an array
- compare the original files name and size stored in an array with those from the backup folder
- send a report email

View 3 Replies View Related

General :: Kernel Dumps To The Wrong /var/crash?

May 2, 2011

I'm running Scientific Linux 5.5 (equivalent to CentOS 5.5), and over the past two weeks, I have had a problem with my root partition filling up, preventing anyone from logging into the server.After searching for large files, and finding none, I was mystified when du told me that the root partition had only 660 MB of disk space used, whilst df showed it full. The problem was this: the /var/crash directory had been filled up by an 8GB crash file. Now, I'm a 'proper' sysadmin and make sure that /var has its own mount point, so the crash should not have touched the root partition at all. Except it did - instead of writing to /var/crash on /dev/mapper/VolGroup00-LogVol04 which is mounted as /var, it wrote the file to /dev/md0 directly, so when all the file systems were mounted, those files were hidden under the mounted /var.

View 4 Replies View Related

General :: Get The Rhce Topics In Depth?

Sep 4, 2010

using ubuntu and mint since 2009.i planning to do rhce.. before that i want to know the depthness of rhce topics in detail...

View 1 Replies View Related

General :: How To Prepare For RHCE Certification?

Apr 17, 2010

This is going to be my first post.I am doing RH-033 course. Can anyone tell me how to prepare for RHCE certification exam.

View 5 Replies View Related

General :: RHCE Exam Duration

Mar 12, 2010

I am planning to take up RHCE exam, but i have a doubt about the exam duration does it consist of 2 section where section 1 is for 2.5 hrs and section 2 is for 3 hours (total 5 1/2 hours) or does it consist of single section of 3.5 hours.

View 1 Replies View Related

General :: Need Rhce Study Material

Feb 20, 2011

I am new to this linux environment. i want to become unix system admin .please suggest me study material .which is best .and tips to remember commands

View 2 Replies View Related

General :: Course On That And Completed The RHCE Certification?

Aug 5, 2010

My question is not related to technical one,

1.I completed my Post Graduation in 2008,after that as of my personal interest on Red Hat, i took course on that and completed the RHCE certification.

2.Now im looking 4 opportunities on Linux Admin,i would like to know the roles played by an Linux Admin in real time scenario,im looking for an System Admin.

3.What i mean to ask is, what type of daily tasks does Linux Admin will do? Let me know the answers if any one know dis.

View 2 Replies View Related

General :: Unable Kernel Crash Dumps In Debian?

May 8, 2011

I want to enable kernel crash dumps for my Debian 5.0.7 machine. The kernel version is 2.2.26 amd64.How can I configure this?

View 1 Replies View Related

General :: Making Projects On Basis Of RHCE

Aug 14, 2010

I am currently doing RHCE. I want to make projects on basis of this.

View 8 Replies View Related

General :: After Install / Reboot Dumps At Command Prompt With No Desktop

Jan 29, 2011

I am running Windows 7 on an HP laptop trying to create a dual boot with Ubunta 9.0.4(?). I left 300 gb in unpartioned space when I loaded Windows 7 to load linux in (new hard drive). I then partioned the 300gb thru Windows using Paragon Hard Disk Manager. After installing Ubunta, it dumps me at the command prompt. Graphics problem?

View 6 Replies View Related

General :: Set Facilities On Home Pc To Practice RH 133 And RH 253 For RHCE Exam?

Jun 5, 2010

how to set server like facilities on home pc to practice for RH 133 & RH 253 for RHCE exam.

View 3 Replies View Related

General :: How To Revise For RHCE Exam In A Week Time

Feb 5, 2011

i am going to write rhce exam in this month ,i want some tips how to do revision for the same.

View 1 Replies View Related

General :: Realtime Environment To Practice For RHCE (RH302) Exam?

Apr 11, 2010

is there a resource/material that can simulate a RHEL on your personal machine so that one can practice for RH302 exam accurately? I am looking to practice sample questions with some kind of simulation environment where the scenario is similar to the real-time scenario that we can expect in the exam. For instance, the system is already broken with what is mentioned in the question so that I can focus only on solving the problem rather than breaking it first. I am looking for something specific to RHCE exam preparation/practice rather than using a tool like trouble-maker.

View 4 Replies View Related

General :: Result Of Shell Script Failed In RHCE - Exam

Jan 7, 2010

i've just appeared RHCE exam. i passed RHCT....but got only 36% in rhce part. but i configured all the servers correctly. i wrote shell script of iptables and i successfully run it. i wrote the following scripts....

[Code]...

the result of shell script showed ok when i tested during exam. i didnt know why i failed in rhce..?? is there any problem in the above scripting..?? BTW i checked all the servers and i found ok after rebooting machine.

View 8 Replies View Related

Software :: Replace Newline Pattern In File By Other Newline Pattern In A Shell Script?

Nov 22, 2010

I have several (vhdl) files containing a pattern with newline characters that I need to replace by another pattern that also contains newline characters.

I start with something like:

Code:

I want to replace it by something like:

Code:

(I need to paste some lines)

As I need to do this (very) often I want to use a shell script.

I tried:

1.

Code:

result:

Code:

2.

Code:

result:

File remains unchanged

3.

Code:

result:

Code:

4.

Code:

result:

Displays the unchanged testfile

How I can automate the pattern replacement?

Code:

View 9 Replies View Related

General :: Use Sed To Cut Out All The Text Up Until The Pattern?

Feb 15, 2011

I want to cut out part of the 'uptime' output so all it displays is the load average. In the end I want to cut out everything before the word 'load'. I am a total sed newbie and could really use some examples or links. I've googled and haven't found anything useful yet.##edit###I used the 'cut' command- The code was Code:uptime |cut -d, -f 2,3,4,5 |cut 13-

View 5 Replies View Related

General :: Substitute Pattern With Another Patter In Vi

Apr 24, 2009

I have the large file (textfile) there are word:

code-007100
...
code-007199

How to substitute those all words, so it will change all instances to:

code-007200
...
code-007299

View 5 Replies View Related







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