Sponsored Content
Full Discussion: CDR manupulation
Top Forums Shell Programming and Scripting CDR manupulation Post 302678595 by Scrutinizer on Saturday 28th of July 2012 04:31:56 PM
Old 07-28-2012
Another option maybe:
Code:
awk -F\| '/ 500$| 202$/{if($13 in A)print A[$13] RS $0; else A[$13]=$0}' infile | sort -t\| -k3,3n



--
@agama:
Code:
awk: calling undefined function asort
 input record number 7, file infile
 source line number 7

@RudiC
Code:
uniq: illegal option -- w
usage: uniq [-c | -d | -u] [-i] [-f fields] [-s chars] [input [output]]


Last edited by Scrutinizer; 07-28-2012 at 05:41 PM..
This User Gave Thanks to Scrutinizer For This Post:
 

9 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

writing to a cdr drive.

ive looked around for software to do this in linux, but am still not sure how to. i want to be able to mount a cdr and write to it and be able to take the disk out and finish writing whatever i want to it at a later time. can we do this in linux? (4 Replies)
Discussion started by: norsk hedensk
4 Replies

2. Shell Programming and Scripting

Date Manupulation

HI all, I am relatively new to Unix Shell Scripts ... I want to know how u can calculate the differnece between the 2 dates. As if in Oracle by using SYSDATE u get current date and time .. How one can achieve it in Unix ? Thanks.. (1 Reply)
Discussion started by: dhananjaysk
1 Replies

3. UNIX for Dummies Questions & Answers

Generating a CDR file using PHP scripts.

Hi, I need to do croning in PHP to generate a CDR (Call Details Record) file daily from the mysql database. The CDR file has to be named in a certain sequence such as xx00000xxx200604080850.cdr. A new file is written every day. The generated CDR file is then ftp over to a server. I am... (0 Replies)
Discussion started by: kurl
0 Replies

4. UNIX for Dummies Questions & Answers

records manupulation

I am sending the data in userfile and colfile from ksh script to pl/sql script linto an array with this command grep '' $userfile |awk '{print "my_user_id("FNR") := '$SQL_QUOTE'"$1"'$SQL_QUOTE';"}' >> $SQL_TEMP_FILE grep '^\{1,10\}$' $colfile | awk '{print "my_col_id("NR") := "$1";"}' >>... (0 Replies)
Discussion started by: pinky
0 Replies

5. Shell Programming and Scripting

parsing large CDR XML file

Dear Freind in the file attached how parse the data to be like a normal table :D (3 Replies)
Discussion started by: saifsafaa
3 Replies

6. AIX

Rows manupulation using AWK or sed

Hi Everyon, I am stuck in a script.I have a file named file1.txt as given below: It contains 2 columns-count and filename. cat file1.txt count filename 100 A_new.txt 1000 A_full.txt 1100 B_new.txt 2000 B_full.txt 1100 C_new.txt 2000 C_full.txt ................... ..................... (10 Replies)
Discussion started by: rajsharma
10 Replies

7. Shell Programming and Scripting

How to do Date Manupulation in Korn Shell?

Hi All, I need to find the date 19days back from the current date: eg: if today is 17 March 2013 then the output should be : 26 Feb 2013 Can i do this using date command in Korn Shell? And also if i need future 15 days date from current date, how to that? Any help appreciated :) ... (3 Replies)
Discussion started by: Arun Mishra
3 Replies

8. Shell Programming and Scripting

awk for string manupulation

Hi All, I have one file with two columns separated by tab. I need to search for second column value of this file in the 5 column of another file. If the match is found replace the 5th column of second file with entire row of the first file. e.g. file1 123 D.abc 234 D.rde 4563 ... (2 Replies)
Discussion started by: alok2082
2 Replies

9. Shell Programming and Scripting

Help with appending random sequence to huge CDR file

Hi, I am in a terrible emergency. I have multiple cdr files with line count >6000. I need to append |0| | | | | | | |random| to end of each line. The random number should never repeat. Please help with a shell script to process all cdr's in a directory with above requirement. (23 Replies)
Discussion started by: shiburnair
23 Replies
ABL(1)							     cao-vlsi reference manual							    ABL(1)

NAME
abl - Prefixed representation for boolean functions ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr DESCRIPTION
libablmmm.a is a library that enables to represent a boolean function in a LISP-like form. An ABL is a prefixed internal representation for a boolean function having standard operators as OR,NOR,NAND,XOR,NOT and AND. An ABL is only made up of doublets. A doublet is composed of two fields wich are accessible by the functionnal #define CAR and CDR. A doublet is implemented with a MBK chain_list. Expression is the generic term for a boolean function represented by an ABL. An expression can be an atomic expression or an operator expression. The function f = a is represented by an atomic expression whereas f = (or a b) is represented by an operator expression. An atomic expression is made up of a single doublet having the NEXT pointer equal to NULL and DATA pointer equal to the identifier pointer. A constant atomic expression is an atomic expression having the string "'0'" or "'1'" as identifier. An operator expression is more complicated than an atomic expression. It's a list of items, the first item is the head operator of the expression and the following items are the arguments of the expression. It's possible to go trough the arguments by calling the functionnal #define CDR. Then each argument is accessible by the functionnal #define CAR. An argument can be recursively an atomic or an operator expression. The arity of an operator expression is the number of arguments of the first level. Functions are divided into two groups, the low level functions are written with #define and are used to manage the ABL internal form, the high level functions are used to manage the boolean expressions. All functions are defined in the file "prefbib.c" (#define in "logmmm.h"). Functionnal #define ATOM - checks the kind of an expression (atomic or operator expression). CAR - returns the DATA pointer of a doublet. CADR - returns the DATA pointer of the NEXT pointer of a doublet. CDR - returns the NEXT pointer of a doublet. OPER - returns the operator number of an operator expression. VALUE_ATOM - returns the associated char * of an atomic expression. Functions and procedures addHExpr - adds a new arguments at the head of an operator expression. addQExpr - adds a new arguments at the queue of an operator expression. anyExpr - returns the value of a logical OR applied on the results of the application of a function on the arguments of an operator expression. changeOperExpr - changes the operator of the head of an expression. charToOper - converts an operator string into an operator number. copyExpr - copies an expression. createAtom - creates an atomic expression. createBinExpr - creates a binary operator expression with an eventual merging of the operator. createExpr - creates the head of an operator expression. deleteNumExpr - removes the i-th argument in an operator expression. devXor2Expr - converts XOR 2 to OR-AND. devXorExpr - removes XOR in an expression. displayExpr - displays an expression in a prefixed notation. displayInfExpr - displays an expression in infixed notation. equalExpr - checks that two expressions are strictly equal. equalVarExpr - checks that two expressions are syntactically equal. everyExpr - returns the value of a logical AND applied on the results of the application of a function on the arguments of an operator expression. exprToChar - converts an expression into a string. charToExpr - converts a string into an expression. flatArityExpr - flattens the operators of an expression. flatPolarityExpr - translates the inverters of an expression to the level of atomic expressions. freeExpr - frees an expression. identExpr - gives an identifier from an operator expression. lengthExpr - returns the number of arguments in an expression. mapCarExpr - creates a new expression by applying a function to all arguments of an operator expression. mapExpr - applies a procedure to all the arguments of an operator expression. maxExpr - returns the highest argument of an operator expression. minExpr - returns the lowest argument of an operator expression. normExpr - normalizes an expression. notExpr - complements an expression and eventually does a simplification. numberAtomExpr - returns the number of atoms in an expression. numberOccExpr - returns the number of time an atom appears in an expression. numberOperBinExpr - returns the number of equivalent binary operators in an expression. operToChar - converts an operator number into an operator string. profExpr - returns the depth of an expression. profAOExpr - returns the depth of an expression without taking the inverters into account. searchExpr - searches for a specific atom in an expression. searchNumExpr - fetches the i-th argument in an operator expression. searchOperExpr - searches for an operator in an expression. simplif10Expr - makes simplifications on an expression including constant atomic expressions. simplifNotExpr - makes simplifications on an expression including inverters. sortExpr - sorts an expression. substExpr - copies an expression by substituting a given atom by an expression. substPhyExpr - substitutes an atomic expression by an expression within an expression. supportChain_listExpr - returns the support of an expression in a chain_list. supportPtype_listExpr - returns the support of an expression in a ptype_list. wPMExpr - returns 1 if the pattern matching is possible between two expressions. SEE ALSO
log(1), mbk(1), addHExpr(3), addQExpr(3), anyExpr(3), changeOperExpr(3), charToExpr(3), charToOper(3), copyExpr(3), createAtom(3), create- BinExpr(3), createExpr(3), deleteNumExpr(3), devXor2Expr(3), devXorExpr(3), displayExpr(3), displayInfExpr(3), equalExpr(3), equalVar- Expr(3), everyExpr(3), exprToChar(3), flatArityExpr(3), flatPolarityExpr(3), freeExpr(3), identExpr(3), lengthExpr(3), mapCarExpr(3), map- Expr(3), maxExpr(3), minExpr(3), notExpr(3), normExpr(3), numberAtomExpr(3), numberOccExpr(3), numberOperBinExpr(3), operToChar(3), prof- Expr(3), profAOExpr(3), searchExpr(3), searchNumExpr(3), searchOperExpr(3), simplif10Expr(3), simplifNotExpr(3), sortExpr(3), substExpr(3), substPhyExpr(3), supportChain_listExpr(3), supportPtype_listExpr(3). PMExpr(3). BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 ABL(1)
All times are GMT -4. The time now is 07:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy