Sponsored Content
Top Forums Shell Programming and Scripting split record based on delimiter Post 302554115 by Jairaj on Saturday 10th of September 2011 05:19:26 AM
Old 09-10-2011
split record based on delimiter

Hi,

My inputfile contains field separaer is ^.

12^inms^
13^fakdks^ssk^s3
23^avsd^
13^fakdks^ssk^a4

I wanted to print only 2 delimiter occurence i.e

12^inms^
23^avsd^
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

split string with multibyte delimiter

Hi, I need to split a string, either using awk or cut or basic unix commands (no programming) , with a multibyte charectar as a delimeter. Ex: abcd-efgh-ijkl split by -efgh- to get two segments abcd & ijkl Is it possible? Thanks A.H.S (1 Reply)
Discussion started by: azmathshaikh
1 Replies

2. Shell Programming and Scripting

Substring based on delimiter, finding last delimiter

Hi, I have a string like ABC.123.XYZ-A1-B2-P1-C4. I want to delimit the string based on "-" and then get result as only two strings. One with string till last hyphen and other with value after last hyphen... For this case, it would be something like first string as "ABC.123.XYZ-A1-B2-P1" and... (6 Replies)
Discussion started by: gupt_ash
6 Replies

3. Shell Programming and Scripting

Split a record based on particular match

Hi , I have a requirement to split the record based on particular match using UNIX. Case1: Input Record : 10.44.48.63;"Personals/Dating;sports";1441 Output Records : 10.44.48.63;Personals/Dating;1441;Original 10.44.48.63;sports;1441;Dummy Case2: Input Record : ... (5 Replies)
Discussion started by: mksuneel
5 Replies

4. Shell Programming and Scripting

Split into columns based on the parameter and use & as delimiter

Here is my source, i have million lines like this on a file. disp0201.php?poc=4060&roc=1&ps=R&ooc=13&mjv=6&mov=5&rel=5&bod=155&oxi=2&omj=5&ozn=1&dav=20&cd=&daz=& drc=&mo=&sid=&lang=EN&loc=JPN I want to split this into columns in order to load in database, anything starts with"&mjv=6" as first... (13 Replies)
Discussion started by: elamurugu
13 Replies

5. Shell Programming and Scripting

How to split a string with no delimiter

Hi; I want to write a shell script that will split a string with no delimiter. Basically the script will read a line from a file. For example the line it read from the file contains: 99234523 These values are never the same but the length will always be 8. How do i split this... (8 Replies)
Discussion started by: saint34
8 Replies

6. Shell Programming and Scripting

split file by delimiter with csplit

Hello, I want to split a big file into smaller ones with certain "counts". I am aware this type of job has been asked quite often, but I posted again when I came to csplit, which may be simpler to solve the problem. Input file (fasta format): >seq1 agtcagtc agtcagtc ag >seq2 agtcagtcagtc... (8 Replies)
Discussion started by: yifangt
8 Replies

7. Shell Programming and Scripting

EBCDIC File Split Based On Record Key

I was wondering if anyone could explain to me how to split a variable length EBCDIC file into seperate files based on the record key. I have the COBOL layout, and so I need to split the file into 13 different EBCDIC files so that I can run each one through a C++ converter I have, and get the... (11 Replies)
Discussion started by: hanshot1stx
11 Replies

8. Shell Programming and Scripting

How to check record delimiter of a file ?

My requirment is for every record of a particular file I've to check for a record delimeter (e.g. "\n") and if any row doesn't have "\n" then report it in error file . Please suggest me to go through this. (4 Replies)
Discussion started by: manab86
4 Replies

9. UNIX for Advanced & Expert Users

How to split large file with different record delimiter?

Hi, I have received a file which is 20 GB. We would like to split the file into 4 equal parts and process it to avoid memory issues. If the record delimiter is unix new line, I could use split command either with option l or b. The problem is that the line terminator is |##| How to use... (5 Replies)
Discussion started by: Ravi.K
5 Replies

10. Shell Programming and Scripting

Split files based on row delimiter count

I have a huge file (around 4-5 GB containing 20 million rows) which has text like: <EOFD>11<EOFD>22<EORD>2<EOFD>2222<EOFD>3333<EORD>3<EOFD>44<EOFD>55<EORD>66<EOFD>888<EOFD>9999<EORD> Actually above is an extracted file from a Sql Server with each field delimited by <EOFD> and each row ends... (8 Replies)
Discussion started by: amvip
8 Replies
MAKEKDEDOC(1)						     KDOC Documentation System						     MAKEKDEDOC(1)

NAME
makekdedoc -- Generates HTML documentation for KDE libraries using KDOC. SYNOPSIS
makekdedoc [--rule-file=<rulefile>] [--libdir=<libdir>] [--outputdir=<outputdir>] [--url=<url>] [--srcdir=<kdelibs src dir>] [--kdoc=<path to kdoc>] [<library>...] makekdedoc --help DESCRIPTION
This is a perl script that uses KDOC to generate documentation for kdelibs. A "rule" file is used to figure out the libraries to document, the order in which to document them and the libraries with which each one will be cross-referenced (eg kdeui uses -lkdecore). See "FILES" for more info. NOTE: The script assumes that you have already generated a Qt cross-reference using qt2kdoc[1]. OPTIONS
Defaults for each option are in square brackets. library... Specify the libraries to document. By default, all libraries defined by the rule file are documented. --outputdir <path>, -d <path> The directory where the output will be written. [`cwd`/srcdoc] --url <url>, -u <url> The base URL by which the generated docs will be accessed. For example, if your web server is configured to use $HOME/public_html for your home page, you could set the outputdir to $HOME/public_html/srcdoc and the url to http://myhost/~mylogin/srcdoc. [output dir] --rule-file <path>, -r <path> The path to the rule file to use for generating the documentation. [<srcdir>/kdoc.rules] --libdir <path>, -L <path> The directory in which the KDOC cross-reference files are stored. [$KDOCLIBS if set, otherwise $HOME/.kdoc] --kdoc <path>, -k <path> The path to the kdoc program. [kdoc] --kdocopt <options>, -p <options> Extra options to be passed to kdoc. --srcdir <path>, -b <path> The path to the kdelibs source, eg "$HOME/baseline/kdelibs". [`cwd`] --help, -h Quit with a usage message. EXAMPLES
makekdedoc --srcdir $HOME/baseline/kdelibs --outputdir $HOME/public_html/src/kdelibs/ --url "http://www.ph.unimelb.edu.au/~ssk/src/kdelibs" FILES
Rule file This file lists the directories in the source directory to document. It also lists the files to document from each directory, and the libraries with which to cross-reference the generated documentation. Here is a small example that documents two libraries and links the second to the first. # makekdedoc rule file doc_MODULES = eenie meenie # rules for eenie eenie_FILES = *.h eenie_LIBS = -lqt # rules for meenie meenie_FILES = a.h b.h meenie_LIBS = -leenie -lqt In this example, all files in "eenie/*.h" will be documented then two files from "meenie/" will be documented, in the order declared in "doc_MODULES". SEE ALSO
See kdoc[1] and qt2kdoc[1]. VERSION
makekdedoc $Revision: 1.2 $ AUTHOR
The script and this documentation were written by Sirtaj Singh Kang <taj@kde.org> in April 1999. 2.0a54 2000-10-10 MAKEKDEDOC(1)
All times are GMT -4. The time now is 07:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy