Hi All,
I am encountered with a problem while sorting a file based on multiple columns . I need to sort like:
(field2,ascending) , (field3,ascending) ,(field8,descending) , (field7,ascending),(field13,ascending).
So far i was sorting only in ascending order but here i need to use one... (1 Reply)
hi all
i want to remove some descending order number
example :
1 100 200 135.00 Gk_wirs 1
1 100 200 136.00 Gk_wirs 50
1 110 210 138.00 Gk_wirs 60
1 100 200 136.00 Gk_wirs 57 ----> how to remove... (6 Replies)
I have a text file where I want to append a column of numbers in ascending orders.
Input:
57 abc
25 def
32 ghi
54 jkl
Output:57 abc
57 abc 1
25 def 2
32 ghi 3
54 jkl 4
How do I go about doing that? Thanks! (11 Replies)
Hi,
I am trying to sort the following file in descending order of its fourth column.
2 1 363828 -2.423225e-03
3 1 363828 4.132763e-03
3 2 363828 8.150133e-03
4 1 363828 4.126890e-03
I use
sort -k4,4g -r input.txt > output.txt ... (1 Reply)
Hi,
I have a problem . I have few directories like inpTDT_1, inpTDT_2, inpTDT_3 and so on inside HOME directory . In one of my perl script (which is in my HOME), the above directories like inpTDT_1, inpTDT_2, inpTDT_3 are sorting out in an order So I wanted to sort all the inpTDT_1, inpTDT_2,... (1 Reply)
Discussion started by: venkatesh
1 Replies
LEARN ABOUT CENTOS
chain
CHAIN(3) MBK UTILITY STRUCTURE DEFINITIONS CHAIN(3)NAME
chain - mbk lisp-like service structure
DESCRIPTION
The chain is used for any purpose, when a list of pointer is required. The use of this structure is strongly recommanded, when such a need
occurs.
The declarations needed to work on chain are available in the header file "/labo/include/mut315.h", where '315' is the actual mbk version.
The following C structure supports the description of the chain :
typedef struct chain {
struct chain *NEXT;
void *DATA;
} chain_list;
NEXT Pointer to the next chain of the list.
DATA Generic pointer used to point to any kind of object. Do not forget to cast the pointer back to its previous type when
using this field.
Remark : a specialized memory allocator has been built in order to create and free chain_lists, so absolutly avoid to create or
free them an other way than through the access functions.
SEE ALSO mbk(1), addchain(3), freechain(3), delchain(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 CHAIN(3)