I want to search a file for a string and then if the string is found I need the line that the string is on - but also the previous two lines from the file (that the pattern will not be found in)
This is on solaris
Can you help? (2 Replies)
hiii,
i have to write a shell script like this----
i have a huge log file name abc.log .i have to search for a pattern name "pattern",it may occur 1000 times in the log file,every time it finds the pattern it should display the 10 lines above the pattern.
I appericiate your help. (30 Replies)
Hi all,
I am trying to extract the values ( text between the xml tags) based on the Order Number.
here is the sample input
<?xml version="1.0" encoding="UTF-8"?>
<NJCustomer>
<Header>
<MessageIdentifier>Y504173382</MessageIdentifier>
... (13 Replies)
Hey folks!
I am new to shell-scripting, but I have a problem that I would like to solve using a script. I create very large html forms, used for randomized trials. In these forms, each question is supplied with a variable that looks something like this: PROJECT_formNN
Where NN is the question... (1 Reply)
i have something like this in a file called mysqldump.sql
--
-- Table structure for table `Table11`
--
DROP TABLE IF EXISTS `Table11`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Table11` (
`id` int(11) NOT NULL... (14 Replies)
I have a file with following data
<Field FieldName="CHCFA21_01_01" FieldType="Text">
<Output CapturedValue="">
<DataSource Name="" Value="" />
</Output>
</Field>
<Field FieldName="CHCFA21_01_02" FieldType="Date">
<Output CapturedValue="">
... (1 Reply)
Hi team,
Is it possible to display 2 lines after a particular pattern in a shell script. For example in a file which has the below contents.
Mummy
Daddy
Son
Daughter
Children
Aunty
Uncle
Grandma
Grandpa
Son
Father
Mother
Brother-in-law
I want to display 2 lines before and after... (1 Reply)
Hi,
I've written a script to search for an Oracle ORA- error on a log file, print that line and the .trc file associated with it as well as the dateline of when I assumed the error occured. In most it is the first dateline previous to the error.
Unfortunately, this is not a fool proof script.... (2 Replies)
Hi I need to grep for a patter and display all lines below the pattern.
For ex: say my file has the below lines
file1
file2
file3
file4
file5
I NEED to grep for patter file3 and display all lines below the pattern. do we have an option to get this data. Let me know if you require... (5 Replies)
Discussion started by: venkidhadha
5 Replies
LEARN ABOUT SUSE
rdf2ith
RDF2BIN(1) Debian Manual RDF2BIN(1)NAME
rdf2bin, rdf2com - convert an RDOFF object file to flat binary
SYNOPSIS
rdf2bin [-o relocation-origin] [-p segment-alignment] [-f format] input-file output-file
rdf2com [-p segment-alignment] input-file output-file
rdf2ith [-o relocation-origin] [-p segment-alignment] input-file output-file
rdf2srec [-o relocation-origin] [-p segment-alignment] input-file output-file
OPTIONS -o relocation-origin
Relocate at origin relocation-origin. If invoked as rdf2com, the default relocation origin will be 0x100. Else, the default origin
is 0.
-p segment-alignment
Pad segments until their size is a multiple of segment-alignment. By default, 16 is used.
-f format
Specify the output format. The currently supported formats are binary (bin), DOS COM (binary with origin 0x100) (com) Intel hex
(ith or ihx), and Motorola S-Records (srec). If not specified, the format is set by the command name.
AUTHORS
Julian Hall <jules@earthcorp.com>, H. Peter Anvin <hpa@zytor.com>.
This manual page was written by Matej Vela <vela@debian.org>.
BUGS
This utility currently only supports the classic segments .text, .data and .bss.
Debian Project September 6, 1999 RDF2BIN(1)