01-09-2011
re: reformat text table
mixed up reply, deleted!
Last edited by yifangt; 01-09-2011 at 11:02 PM..
Reason: Had hard time to format the text.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I need to BCP out a table into a text file along with the table headers. Normal BCP out command only bulk copies the data, and not the headers.
I am using the following command: bcp database1..table1 out file1.dat -c -t\| -b1000 -A8192 -Uuser -Ppassword -efile.dat.err
Regards,... (0 Replies)
Discussion started by: shilpa_acc
0 Replies
2. Shell Programming and Scripting
I am definitely not an expert with awk, and I want to reformat a text file like the following. This is probably a very easy one for an expert out there. I would like to keep the lines in the same order, but move the heading to only be listed once above the lines.
This is what the text file... (7 Replies)
Discussion started by: linux4life
7 Replies
3. Shell Programming and Scripting
hhhhhhhhhh (5 Replies)
Discussion started by: sams
5 Replies
4. Shell Programming and Scripting
Hi,
I have a pipe separated text file.
Can some someone tell me how to convert it to a table?
Text File contents.
|Activities|Status1|Status2|Status3|
||NA|$io_running2|$io_running3|
|Replication Status|NA|$running2|$running3|
||NA|$master2|$master3|... (1 Reply)
Discussion started by: rocky88
1 Replies
5. Shell Programming and Scripting
Hi,
I am trying to show my list, from a simple list format to a table (row and column formatted table)
Currently i have this format in my output (the formart it will always be like this ) >> first 3 lines must be on the same line aligned, and the next 3 shud be on 2nd line....:
INT1:... (10 Replies)
Discussion started by: eboye
10 Replies
6. Shell Programming and Scripting
I have this input and want output like below, how can I achieve that through awk:
Input:
CAT1 FRY-01
CAT1 FRY-04
CAT1 DRY-03
CAT1 FRY-02
CAT1 DRY-04
CAT2 FRY-03
CAT2 FRY-02
CAT2 DRY-01
FAT3 DRY-12
FAT3 FRY-06
Output:
category CAT1
item FRY-01 (7 Replies)
Discussion started by: aydj
7 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have text file with comma seprater shown below
lu8yh,n,Fri,Feb,7,2014,16:5
deer4
deer4,n,Tue,Aug,21,,2012,on
r43ed
r43ed,n,Tue,Nov,12,2013,12:
e43sd
e43sd,n,Tue,Jan,1,,2013,on,
I am using below code to load the text file into table
#!/bin/ksh... (16 Replies)
Discussion started by: stew
16 Replies
8. UNIX for Dummies Questions & Answers
Hi everyone,
I have a microbial diversity table in the format ;k__kingdom; p__phylum, etc, somer rows have descriptions before the :k__ (like the af028349.1 below) is there a way I can get rid of this text (which is different every time) and keep all the other columns?
Thanks a bunch!
;... (1 Reply)
Discussion started by: Juan Gonzalez
1 Replies
9. Shell Programming and Scripting
Howdy. AWK beginner here. I need to reformat a text file in the following format:
TTGS08-2014001 6018.00 143563.00 ... (2 Replies)
Discussion started by: c47v3770
2 Replies
JUDY(3) 1 JUDY(3)
The Judy class
INTRODUCTION
The Judy class implements the ArrayAccess interface and the Iterator interface. This class, once instantiated, can be accessed like a
PHParray.
A PHP Judy object (or Judy Array) can be one of the following type :
oJudy::BITSET
oJudy::INT_TO_INT
oJudy::INT_TO_MIXED
oJudy::STRING_TO_INT
oJudy::STRING_TO_MIXED
Example #1
Judy array example
<?php
$judy = new Judy(Judy::INT_TO_MIXED);
$judy[1] = "one";
$judy[2] = array('a', 'b', 'c');
$judy[3] = new Judy(Judy::BITSET);
?>
CLASS SYNOPSIS
Judy
JudyArrayAccessIterator
Constants
o const integer$Judy::BITSET1
o const integer$Judy::INT_TO_INT2
o const integer$Judy::INT_TO_MIXED3
o const integer$Judy::STRING_TO_INT4
o const integer$Judy::STRING_TO_MIXED5
Methods
o public int Judy::byCount (int $nth_index)
o public Judy::__construct (int $judy_type)
o public int Judy::count ([int $index_start], [int $index_end = -1])
o public void Judy::__destruct (void )
o public mixed Judy::first ([mixed $index])
o public int Judy::firstEmpty ([mixed $index])
o public int Judy::free (void )
o public int Judy::getType (void )
o public void Judy::last ([string $index])
o public int Judy::lastEmpty ([int $index = -1])
o public int Judy::memoryUsage (void )
o public mixed Judy::next (mixed $index)
o public int Judy::nextEmpty (int $index)
o public bool Judy::offsetExists (mixed $offset)
o public mixed Judy::offsetGet (mixed $offset)
o public bool Judy::offsetSet (mixed $offset, mixed $value)
o public bool Judy::offsetUnset (mixed $offset)
o public mixed Judy::prev (mixed $index)
o public int Judy::prevEmpty (mixed $index)
o public void Judy::size (void )
PREDEFINED CONSTANTS
o Judy::BITSET -Define the Judy Array as a Bitset with keys as Integer and Values as a Boolean
o Judy::INT_TO_INT -Define the Judy Array with key/values as Integer, and Integer only.
o Judy::INT_TO_MIXED -Define the Judy Array with keys as Integer and Values of any type.
o Judy::STRING_TO_INT -Define the Judy Array with keys as a String and Values as Integer, and Integer only.
o Judy::STRING_TO_MIXED -Define the Judy Array with keys as a String and Values of any type.
PHP Documentation Group JUDY(3)