Hi ,
Can You Please let Know How use unix uniq command on a single column for deleting records from file
with Below Structure.Pipe Delimter File .
Source
Name | Account_Id
A | 101
B... (2 Replies)
Dear Friends,
I want to know if it is possible to perform addition as part of uniq command.
Input:
213.64.56.208 1
213.64.56.208 2
213.64.56.208 3
213.46.27.204 10
213.46.27.204 20
213.46.27.204 30
The above input should be converted as follows
213.64.56.208 6
213.46.27.204 60
... (4 Replies)
Hello
i have tried to retrieve a distinct list of data from a file with a command combination but the uniq command line is not filtering the fields repeated.
Can someone help me ?
here is the file input
3837734|LAUNCH TEST01
3837735|LAUNCH TEST01
3837736|LAUNCH TEST01
3837737|LAUNCH... (4 Replies)
Platform :Oracle Linux 6.4
Shell : bash
The below file has 7 lines , some of them are duplicates. There are only 3 distinct lines. But why is the uniq command still showing 7 ?
I just want the distinct lines to be returned.
$ cat test.txt
SELECT FC.COORD_SET_ID FROM OM_ORDER_FLOW F, -... (2 Replies)
Discussion started by: kraljic
2 Replies
LEARN ABOUT PHP
udm_cat_list
UDM_CAT_LIST(3) 1 UDM_CAT_LIST(3)udm_cat_list - Get all the categories on the same level with the current oneSYNOPSIS
array udm_cat_list (resource $agent, string $category)
DESCRIPTION
Gets all the categories on the same level with the current one.
The function can be useful for developing categories tree browser.
PARAMETERS
o $agent
- A link to Agent, received after call to udm_alloc_agent(3).
o $category
-
RETURN VALUES
Returns an array listing all categories of the same level as the current $category in the categories tree.
The returned array consists of pairs. Elements with even index numbers contain the category paths, odd elements contain the corresponding
category names.
$array[0] will contain '020300'
$array[1] will contain 'Audi'
$array[2] will contain '020301'
$array[3] will contain 'BMW'
$array[4] will contain '020302'
$array[5] will contain 'Opel'
...
etc.
EXAMPLES
Following is an example of displaying links of the current level in format:
Audi
BMW
Opel
...
Example #1
udm_cat_list(3)example
<?php
$cat_list_arr = udm_cat_list($udm_agent, $cat);
$cat_list = '';
for ($i=0; $i<count($cat_list_arr); $i+=2) {
$path = $cat_list_arr[$i];
$name = $cat_list_arr[$i+1];
$cat_list .= "<a href="$_SERVER[PHP_SELF]?cat=$path">$name</a><br />";
}
?>
SEE ALSO udm_cat_path(3).
PHP Documentation Group UDM_CAT_LIST(3)