DHeisenberg - Thanks for suggestion. I wrote a program on similar patter in java and it is working perfectly fine.
RudiC - Thanks for your suggestion, Below one worked fine. (got some error in 2nd suggestion with live data)
I have couple of question to understand it better and use it for other future requirement as well.
1. /\*\*\*/ is extracting the paragraph based on *** pattern and then based on number of line/rows count result is getting printed.
Instead of counting the number of lines if i want to check in this paragraph if any line starts with a number(.) then print it (kind of true or false logic) then how to do
2. I couldn't understand the logic of print 2 times (one before end and other after end with similar logic) even though final output is only once.
Thanks
Moderator's Comments:
Please use CODE tags (not ICODE tags) for multi-line samples of input, output, and code segments.
Last edited by Don Cragun; 07-26-2014 at 06:14 PM..
Reason: Change ICODE tags to CODE tags.
Hi folks,
I have a text file that I need to parse, and I cant figure it out. The source is a report breaking down softwares from various companies with some basic info about them (see source snippet below). Ultimately what I want is an excel sheet with only Adobe and Microsoft software name and... (5 Replies)
Hi Guys,
I am new to awk and sed, i am working multiline document, i want to make make that document into SINGLE lines based on occurace of string "dwh".
here's the sample of my problem..
dwh123 2563 4562 4236 1236 78956 12394 4552 dwh192 2656 46536 231326 65652 6565 23262 16625623... (5 Replies)
Hi ,
I'm a newbie.Never worked on Unix before. I want a shell script to perform the following:
I want to extract strings from each line ,based on the type of line(Nameline,Subline) and output it to another file.Below is a sample format.
2010-12-21 14:00"1"Nameline"Midterm"First Name:Jane ... (4 Replies)
I have a file with data records separated by multiple equals signs, as below.
==========
RECORD 1
==========
RECORD 2
DATA LINE
==========
RECORD 3
==========
RECORD 4
DATA LINE
==========
RECORD 5
DATA LINE
==========
I need to filter out all data from this file where the... (2 Replies)
Hi,
I have a file like below.
1,2,3,4,5,6,7,8,9I would like to print or copied to a file based of line count in perl
If I gave a condition 1 to 3 then it should iterate over above file and print 1 to 3 and then again 1 to 3 etc.
output should be
1,2,3
4,5,6
7,8,9 (10 Replies)
In the following tab-delimited input, I am checking $7 for the keyword intronic. If that keyword is found then $2 is split by the . in each line and if the string after the digits or the +/- is >10, then that line is deleted. This will always be the case for intronic. If $7 is exonic then nothing... (10 Replies)
Hi ,
I have a situation where I need to search an xml file for the presence of a tag
<FollowOnFrom> and also , presence of partial part of the following tag <ContractRequest _LoadId and if these 2 exist ,then
extract the value from the following tag <_LocalId> which is
"CW2094139". There... (2 Replies)
The following is a multi-line shell command example:
$cargo build
Compiling prawn v0.1.0 (/Users/ag/rust/prawn)
error: failed to resolve: could not find `setup_panix` in `human_panic`
--> src/main.rs:14:22
|
14 | human_panic::setup_panix!();
| ... (2 Replies)
Discussion started by: yogi
2 Replies
LEARN ABOUT SUSE
ldbrename
LDBRENAME(1) User Commands LDBRENAME(1)NAME
ldbrename - Edit LDB databases using your favorite editor
SYNOPSIS
ldbrename [-h] [-o options] {olddn} {newdb}
DESCRIPTION
ldbrename is a utility that allows you to rename trees in an LDB database based by DN. This utility takes two arguments: the original DN
name of the top element and the DN to change it to.
OPTIONS -h
Show list of available options.
-H <ldb-url>
LDB URL to connect to. See ldb(7) for details.
-o options
Extra ldb options, such as modules.
ENVIRONMENT
LDB_URL
LDB URL to connect to (can be overrided by using the -H command-line option.)
VERSION
This man page is correct for version 4.0 of the Samba suite.
SEE ALSO ldb(7), ldbmodify, ldbdel, ldif(5)AUTHOR
ldb was written by Andrew Tridgell.
If you wish to report a problem or make a suggestion then please see the : http://ldb.samba.org/ web site for current contact and
maintainer information.
This manpage was written by Jelmer Vernooij.
Samba 3.5 06/18/2010 LDBRENAME(1)