10-22-2006
You raise an interesting point, it is an odd collection of nearly identical posts. But possibly he just decided to register and post a hello on a variety of websites. We should give him the benefit of the doubt for now. After all, no rule has been broken.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all
I´m stuck with the sort command and would like to ask you for help.
I´m using the following command on the following file:
sort -t "|" -k 1 -k 9 -k 17r file
file:
21833 |23901602|01|2| | |1|0056047507|N| | | | | | | |IN|
...
21837 |20058199|01|6| | ... (4 Replies)
Discussion started by: Indalecio
4 Replies
2. Shell Programming and Scripting
Hi to all.
I'm trying to sort this with the Unix command sort.
user1:12345678:3.5:2.5:8:1:2:3
user2:12345679:4.5:3.5:8:1:3:2
user3:12345687:5.5:2.5:6:1:3:2
user4:12345670:5.5:2.5:5:3:2:1
user5:12345671:2.5:5.5:7:2:3:1
I need to get this:
user3:12345687:5.5:2.5:6:1:3:2... (7 Replies)
Discussion started by: daniel.gbaena
7 Replies
3. UNIX for Advanced & Expert Users
Hello all -
I am to this forum and fairly new in learning unix and finding some difficulty in preparing a small shell script. I am trying to make script to sort all the files given by user as input (either the exact full name of the file or say the files matching the criteria like all files... (3 Replies)
Discussion started by: pankaj80
3 Replies
4. Shell Programming and Scripting
Hello Everybody :) !!!. i have question in mind, is it possible to sort a list of hexadecimal numbers using "sort" command? (9 Replies)
Discussion started by: Kesavan
9 Replies
5. Shell Programming and Scripting
I have an input like
4.3.6.66
4.3.6.67
4.3.6.70
4.3.6.25
4.3.6.15
4.3.6.54
4.3.6.44
4.3.6.34
4.3.6.24
4.3.6.14
4.3.6.53
4.3.6.43
4.3.6.49
4.3.6.33
4.3.6.52
4.3.6.19
4.3.6.58
4.3.6.42 (5 Replies)
Discussion started by: dnam9917
5 Replies
6. Shell Programming and Scripting
sort --random-sort
The full command is
path=`find /testdir -maxdepth 1 -mindepth 1 -type d | ***Some sort of sort function*** | head -1`
I have a list I want to randomly sort. It works fine in ubuntu but on a 'osx lion' sort dosen't have the --random-sort option.
I don't want to... (5 Replies)
Discussion started by: digitalviking
5 Replies
7. Shell Programming and Scripting
Input file:
100%ABC2 3.44E-12 USA
A2M%H02579 0E0 UK
100%ABC2 5.34E-8 UK
100%ABC2 3.25E-12 USA
A2M%H02579 5E-45 UK
Output file:
100%ABC2 3.44E-12 USA
100%ABC2 3.25E-12 USA
100%ABC2 5.34E-8 UK
A2M%H02579 0E0 UK
A2M%H02579 5E-45 UK
Code try:
sort -k1,1 -g -k2 -r input.txt... (2 Replies)
Discussion started by: perl_beginner
2 Replies
8. Shell Programming and Scripting
Hi Experts,
I have a filelist collected from another server , now want to sort the output using date/time stamp filed.
- Filed 6, 7,8 are showing the date/time/stamp.
Here is the input:
#----------------------------------------------------------------------
-rw------- 1 root ... (3 Replies)
Discussion started by: rveri
3 Replies
9. UNIX for Beginners Questions & Answers
Hi,
Could anyone kindly show me a link or explain the difference between
sort -n -k2 -k3 & sort -n -k2,3
Also, if I like to remove the row with repetition at both $2 and $3, Can I safely use
sort -u -k2 -k3
Example;
100 20 30
100 20 30
So, both $2 and $3 are same and I... (2 Replies)
Discussion started by: Indra2011
2 Replies
10. Shell Programming and Scripting
How to sort the following output based on lowest to highest BE?
The following sort does not work.
$ sort -t. -k1,1n -k2,2n bfd.txt
BE31.116 0s 0s DOWN DAMP
BE31.116 0s 0s DOWN DAMP
BE31.117 0s 0s ... (7 Replies)
Discussion started by: sand1234
7 Replies
LEARN ABOUT FREEBSD
dwarf_get_fde_info_for_all_regs3
DWARF_GET_FDE_INFO_FOR_ALL_REGS3(3) BSD Library Functions Manual DWARF_GET_FDE_INFO_FOR_ALL_REGS3(3)
NAME
dwarf_get_fde_info_for_all_regs3 -- retrieve register rule row
LIBRARY
DWARF Access Library (libdwarf, -ldwarf)
SYNOPSIS
#include <libdwarf.h>
int
dwarf_get_fde_info_for_all_regs3(Dwarf_Fde fde, Dwarf_Addr pc, Dwarf_Regtable3 *reg_table, Dwarf_Addr *row_pc, Dwarf_Error *err);
DESCRIPTION
Function dwarf_get_fde_info_for_all_regs3() retrieves a row from the register rule table associated with the given FDE descriptor.
Argument fde should reference a valid DWARF FDE descriptor.
Argument pc should hold the program counter address to be used to locate the desired table row.
Argument reg_table should point to a Dwarf_Regtable3 descriptor which will hold the returned table row of register rules. The
Dwarf_Regtable3 descriptor is defined in the header file <libdwarf.h>:
typedef struct {
Dwarf_Small dw_offset_relevant;
Dwarf_Small dw_value_type;
Dwarf_Half dw_regnum;
Dwarf_Unsigned dw_offset_or_block_len;
Dwarf_Ptr dw_block_ptr;
} Dwarf_Regtable_Entry3;
typedef struct {
Dwarf_Regtable_Entry3 rt3_cfa_rule;
Dwarf_Half rt3_reg_table_size;
Dwarf_Regtable_Entry3 *rt3_rules;
} Dwarf_Regtable3;
The rt3_reg_table_size field specifies the maximum number of register rule columns to be returned, and should be set by the application
before calling the function. The rt3_rules field should point to a memory arena allocated by the application with space for at least
rt3_reg_table_size descriptors of type Dwarf_Regtable_Entry3.
On a successful execution of this function, the rt3_cfa_rule field will be set to the CFA register rule associated with the table row, and
the rt3_rules array will hold the returned register rules contained in the table row.
For each register rule descriptor returned, the dw_offset_relevant field will be set to 1 if the register rule has a offset value, the
dw_value_type field will be set to the type code of the register rule and the dw_regnum field will be set to the register number associated
with the register rule. If the register rule is of type DW_EXPR_OFFSET or DW_EXPR_VAL_OFFSET, the dw_offset_or_block_len field will be set
to the offset value associated with the register rule. If the type is DW_EXPR_EXPRESSION or DW_EXPR_VAL_EXPRESSION, the
dw_offset_or_block_len field will be set to the length in bytes of the DWARF expression block associated with the register rule. The
dw_block_ptr field will be set to a pointer to the content of the DWARF expression block associated with the register rule.
Argument row_pc should point to a location which will be set to the lowest program counter address associated with the table row.
If argument err is not NULL, it will be used to store error information in case of an error.
RETURN VALUES
Function dwarf_get_fde_info_for_all_regs3() returns DW_DLV_OK when it succeeds. In case of an error, it returns DW_DLV_ERROR and sets the
argument err.
ERRORS
Function dwarf_get_fde_info_for_all_regs3() can fail with:
[DW_DLE_ARGUMENT] One of the arguments fde, reg_table or row_pc was NULL.
[DW_DLE_PC_NOT_IN_FDE_RANGE] The program counter value provided in argument pc did not fall in the range covered by argument fde.
SEE ALSO
dwarf(3), dwarf_get_fde_at_pc(3), dwarf_get_fde_info_for_all_regs(3), dwarf_get_fde_info_for_cfa_reg3(3), dwarf_get_fde_info_for_reg(3),
dwarf_get_fde_info_for_reg3(3), dwarf_get_fde_n(3), dwarf_set_frame_cfa_value(3), dwarf_set_frame_rule_table_size(3),
dwarf_set_frame_rule_initial_value(3), dwarf_set_frame_same_value(3), dwarf_set_frame_undefined_value(3)
BSD
June 26, 2011 BSD