10-30-2008
Hi
The first field is some other numbers and the example happen to be somehow row number.
You are right..it is from field 2 to field 6.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I have used the following code to sort two sets of data:
awk '{printf "%10s %s\n",$1,$2}'
The first column is text and the second involves numbers. I was just wondering how i would go about sorting the second number so that they ascend from the top?
Thanks for any help (4 Replies)
Discussion started by: Jaken
4 Replies
2. Shell Programming and Scripting
i have following file have following type of data
1~%%~fcashfafh~%%~9797
can i sort(numeric) the file on first field and then on last feild using awk (3 Replies)
Discussion started by: mahabunta
3 Replies
3. Shell Programming and Scripting
Little-bit of awk experience, need some of the expert help on here. Browsed around here, got a little further, but I am still missing some pieces. Can you help me fill-in my missing awk cells?
Sample data file (leaving out ","'s):
Column 1 Column 2 Column 3 Column 4 ... (10 Replies)
Discussion started by: boolean2222
10 Replies
4. Shell Programming and Scripting
I need to sort this input using sed, awk or any other tool to give below output
Input:
RXOCF-8
CLASS 2A
57
RU
40
RXORX-8-0
CLASS 1B
23 45 16
RXORX-8-1
EXTERNAL CLASS 2A (12 Replies)
Discussion started by: aydj
12 Replies
5. Shell Programming and Scripting
I have an array with five columns and i want to write it to a file.
Before writing it i must sort it using the field in the fifth column.
_________________________________________
|field 1|field 2|field 3|field 4|field 5|
| | | | | |
| | | |... (6 Replies)
Discussion started by: beatblaster666
6 Replies
6. Shell Programming and Scripting
hi everyone, I am kind of new to this forum. I need help in sorting this data out accordingly, I am actually doing a traceroute application and wants my AS path displayed in front of my address like this;
192.168.1.1 AS28513 AS65534 AS5089 AS5089 .... till the last AS number and if possible sort... (8 Replies)
Discussion started by: sam127
8 Replies
7. Shell Programming and Scripting
Hello all, I am new here and *relatively* new to Unix. I have a bit of an emergency. I have a three column file that I need to sort:
sample name, miRNA, reads per million (RPM)
There are multiple samples, and for each sample name there are multiple miRNAs and associated RPMs. Some of these... (6 Replies)
Discussion started by: dunnybocter
6 Replies
8. Shell Programming and Scripting
Hello,
I have a file which has the following format: I have to do is sort individual records in the file based on the 4th field. Each record starts with "Module". Is there an easy way to do this using awk. I have tried piping output from awk to sort and also using "sort" inside awk but... (8 Replies)
Discussion started by: fifteate
8 Replies
9. Shell Programming and Scripting
NB! I have already started a thread on this subject on ComputerHope (with the thread title "Recursive File Renaming & Logical Sorting"). However, on ComputerHope they are perhaps more specialized in Windows Command Prompt, and not that much in shell scripts for Bash (I guess).
I have a bulk... (1 Reply)
Discussion started by: JewzeyfGhewbelz
1 Replies
10. Shell Programming and Scripting
Hello,
I have a file as follows:
BTA Pos KLD
4 79.7011 5.7711028907
4 79.6231 5.7083918219
5 20.9112 4.5559494707
5 58.0002 3.4423546273
6 38.2569 4.7108176788
6 18.3889 7.3631759258 (1 Reply)
Discussion started by: Homa
1 Replies
LEARN ABOUT PHP
udm_get_res_field
UDM_GET_RES_FIELD(3) 1 UDM_GET_RES_FIELD(3)
udm_get_res_field - Fetch a result field
SYNOPSIS
string udm_get_res_field (resource $res, int $row, int $field)
DESCRIPTION
Fetch a mnoGoSearch result field.
PARAMETERS
o $res
-$res - a link to result identifier, received after call to udm_find(3).
o $row
-$row - the number of the link on the current page. May have values from 0 to $UDM_PARAM_NUM_ROWS-1.
o $field
-$field - field identifier, may have the following values:
o UDM_FIELD_URL - document URL field
o UDM_FIELD_CONTENT - document Content-type field (for example, text/html).
o UDM_FIELD_CATEGORY - document category field. Use udm_cat_path(3) to get full path to current category from the categories
tree root. (This parameter is available only in PHP 4.0.6 or later).
o UDM_FIELD_TITLE - document title field.
o UDM_FIELD_KEYWORDS - document keywords field (from META KEYWORDS tag).
o UDM_FIELD_DESC - document description field (from META DESCRIPTION tag).
o UDM_FIELD_TEXT - document body text (the first couple of lines to give an idea of what the document is about).
o UDM_FIELD_SIZE - document size.
o UDM_FIELD_URLID - unique URL ID of the link.
o UDM_FIELD_RATING - page rating (as calculated by mnoGoSearch).
o UDM_FIELD_MODIFIED - last-modified field in unixtime format.
o UDM_FIELD_ORDER - the number of the current document in set of found documents.
o UDM_FIELD_CRC - document CRC.
RETURN VALUES
udm_get_res_field(3) returns result field value on success, FALSE on error.
PHP Documentation Group UDM_GET_RES_FIELD(3)