Hi,
I have a file with a header line, followed by some contents. How can I sort the file according to header lines?
eg.
/* abcd_005*/
a
bc
/* abcd_001*/
d
e
/* abcd_002*/
x
y
desired output:
/*abcd_001*/ (0 Replies)
Hi,
Please help with this problem. Somehow does not work for me.
test.txt
CHR SNP BP A1 C_A C_U A2 CHISQ P OR
19 rs10401969 19268718 C 222 890 T 0.03462 0.8524 0.9857
1 rs10873889 ... (4 Replies)
I have a Script that generates 3 columns of the result. The line script is
/usr/xpg4/bin/awk -F' ' '{print $1 /t $2}' File_Name | awk -F'>' '{print $2}' | cut -d'<' -f1 | sort -rn | uniq -c
The output of the Command is :
Code.500 4 Input Error
Code.404 ... (4 Replies)
Friends,
I need help with the following in UNIX.
Merge all csv files in one folder considering only 1 header row and ignoring header of all other files.
FYI - All files are in same format and contains same headers.
Thank you (4 Replies)
How to sort a tab delimited file first on col1 and then on col2. Also I need to keep the header intact.
file.txt
val1 val2 val3 val4
a b c d
m n o p
e f g h
i j k l
... (3 Replies)
i have a file in the gz format , the content of the file is as follow.
gzcat f1.gz
# 1.name
# 2.location
# 3.age
# 4.dob
.
.
.
.
.
.
.
.
.
# 43.hobbies
< Aravind,33,chennai,09091980, , , , , , , surfing> (5 Replies)
I have several las files with a header and each file start Version and text and before the data starts end up with ~Ascii, then the numbers starts:
-------------------------------------------------------------------------
Code:
~Version
.....text....
~Ascii
2 abc 230 1 name
1 abc ... (1 Reply)
I have several las files with a header and each file start Version and text and before the data starts end up with ~Ascii, then the numbers starts:
-------------------------------------------------------------------------
~Version
.....text....
~Ascii
2 abc 230 1 name
1 abc 400 1... (17 Replies)
Hi ,
My UNIX system is SUN Solaris.
I am trying to do a simple thing as described below.
I have a PIPE delimited file that has header and trailer. So the file is something like below:
Test1.txt looks like something below:
field_data1|field_data2|and some more data --Header
... (5 Replies)
Discussion started by: Saanvi1
5 Replies
LEARN ABOUT HPUX
elf32_getphdr
elf_getphdr(3E)elf_getphdr(3E)NAME
elf32_getphdr, elf32_newphdr, elf64_getphdr, elf64_newphdr - retrieve class-dependent program header table for elf32 and elf64 files,
respectively
SYNOPSIS
[flag... ] file... [library] ...
DESCRIPTION
For a 32-bit class file, returns a pointer to the program execution header table, if one is available for the ELF descriptor elf.
allocates a new table with count entries, regardless of whether one existed previously, and sets the bit for the table (see elf_flag(3E)).
Specifying a zero count deletes an existing table. Note this behavior differs from that of (see elf_getehdr(3E)), allowing a program to
replace or delete the program header table, changing its size if necessary.
If no program header table exists, the file is not a 32-bit class file, an error occurs, or elf is null, both functions return a null
pointer. Additionally, returns a null pointer if count is zero.
The table is an array of structures, each of which includes the following members.
The ELF header's member tells how many entries the program header table has (see elf_getehdr(3E)). A program may inspect this value to
determine the size of an existing table; automatically sets the member's value to count. If the program is building a new file, it is
responsible for creating the file's ELF header before creating the program header table.
For a 64-bit class file, returns a pointer to the program execution header table, if one is available for the ELF descriptor elf.
allocates a new table with count entries, regardless of whether one existed previously, and sets the bit for the table (see Specifying a
zero count deletes an existing table. Note this behavior differs from that of (see elf_getehdr(3E)), allowing a program to replace or
delete the program header table, changing its size if necessary.
If no program header table exists, the file is not a 64-bit class file, an error occurs, or elf is null, both functions return a null
pointer. Additionally, returns a null pointer if count is zero.
The table is an array of structures, each of which includes the following members.
The ELF header's e_phnum member tells how many entries the program header table has (see elf_getehdr(3E)). A program may inspect this
value to determine the size of an existing table; automatically sets the member's value to count. If the program is building a new file,
it is responsible for creating the file's ELF header before creating the program header table.
SEE ALSO elf(3E), elf_begin(3E), elf_flag(3E), elf_getehdr(3E).
elf_getphdr(3E)