Sponsored Content
Top Forums Shell Programming and Scripting Need to extract data from Column having variable length column Post 302594022 by Skrynesaver on Monday 30th of January 2012 08:19:00 AM
Old 01-30-2012
Sorry, you'd need to modify that search so that it was case insesnitive
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Extract column data from File

I have a file containing the lines similar to the following entries: File1.txt: ..... -rw-r--r-- 1 root staff 4110 Aug 7 17:02 XXX_OrderNum1_date1_time1.txt -rw-r--r-- 1 root staff 4110 Aug 7 17:02 XXX_OrderNum2_date2_time1.txt -rw-r--r-- 1 root staff ... (3 Replies)
Discussion started by: sudheshnaiyer
3 Replies

2. Shell Programming and Scripting

Comparing column of variable length anf fixed width file

Hi, I have two input files. File1: ID Name Place 1-234~name1~Newyork 1-34~name2~Boston 1-2345~name3~Hungary File1 is a variable length file where each column is seperated by delimitter "~". File2: ID Country 1-34<<11 SPACES>>USA<<7 spaces>> 1-234<<10 SPACES>>UK<<8... (5 Replies)
Discussion started by: manneni prakash
5 Replies

3. Shell Programming and Scripting

how to extract a data from a column?

Hi All, Consider the below column, say this is the 4th column in a file PROV_STATS:::919900546978::Nokia 6600 PROV_STATS:::919900546978::Nokia 6600 PROV_STATS:::919900546978::Nokia 6600 I wanted to extract only 919900546978 from the 4 th cloumn using unix scripting? Kindly help (8 Replies)
Discussion started by: Balaji Sukumara
8 Replies

4. Shell Programming and Scripting

Extract data based on match against one column data from a long list data

My input file: data_5 Ali 422 2.00E-45 102/253 140/253 24 data_3 Abu 202 60.00E-45 12/23 140/23 28 data_1 Ahmad 256 7.00E-45 120/235 140/235 22 data_4 Aman 365 8.00E-45 15/65 140/65 20 data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies

5. UNIX for Dummies Questions & Answers

Extract alphahumeric data from a column

Hi Unix Gurus, I am newbie to UNIX. I have a file test.txt with the follwing data aa90558 bb72962 cc08342 xy112233 yz25341 aa372099 cc34590231 bb880011 testfil Whatisit00 1234556 testfile2test I want to output only the items with two alpha followed by 5 numeric (ex aa90558 or... (2 Replies)
Discussion started by: SalM
2 Replies

6. Shell Programming and Scripting

for each different entry in column 1 extract maximum values from column 2 in unix/awk

Hello, I have 2 columns (1st column has multiple entries but the corresponding values in the column 2 may be the same or different.) however I want to extract unique values for each entry in column 1 by assigning the max value from column 2 SDF4 -0.211654 SDF4 0.978068 ... (1 Reply)
Discussion started by: Diya123
1 Replies

7. Shell Programming and Scripting

Compare 2 files and match column data and align data from 3 column

Hello experts, Please help me in achieving this in an easier way possible. I have 2 csv files with following data: File1 08/23/2012 12:35:47,JOB_5330 08/23/2012 12:35:47,JOB_5330 08/23/2012 12:36:09,JOB_5340 08/23/2012 12:36:14,JOB_5340 08/23/2012 12:36:22,JOB_5350 08/23/2012... (5 Replies)
Discussion started by: asnandhakumar
5 Replies

8. UNIX for Dummies Questions & Answers

Extract column data

I have a file which extracts data from an HTML file For Eg HTML file contains: New York;ABC;145;Yes;YES;No New York;BCD;113;Yes;YES;No New York;NAS;63;Yes;YES;No ------------------------ London-48;CBT;16;Yes;YES;No London-48;CME;17;Yes;YES;No London-48;EUR;52;Yes;YES;No... (3 Replies)
Discussion started by: newkid.7955
3 Replies

9. Shell Programming and Scripting

awk to extract value from column using variable

I am having trouble extracting the value in the columns declared in a variable. I have tried several different variation of awk but both give me the column number and not the actual value of that column. Any suggestions? Neither of the "extract" variables below are performing as desired ... (5 Replies)
Discussion started by: ncwxpanther
5 Replies

10. Shell Programming and Scripting

Get extract and replace column with link in a column where it exists

hi i have sample data a,b,c,d,e,g h http://mysite.xyx z,b,d,f,e,s t http://123124# a,b,c,i,m,nothing d,i,j,e,w,nothing output expected is a,b,c,d,e,http://mysite.xyx z,b,d,f,e,http://123124# a,b,c,i,m,nothing d,i,j,e,w,nothing i can get only links using grep -o 'http.*' i... (8 Replies)
Discussion started by: zozoo
8 Replies
Alzabo::Create::Column(3pm)				User Contributed Perl Documentation			       Alzabo::Create::Column(3pm)

NAME
Alzabo::Create::Column - Column objects for use in schema creation SYNOPSIS
use Alzabo::Create::Column; DESCRIPTION
This object represents a column. It holds data specific to a column. Additional data is held in a "Alzabo::Create::ColumnDefinition" object, which is used to allow two columns to share a type (which is good when two columns in different tables are related as it means that if the type of one is changed, the other is also.) INHERITS FROM
"Alzabo::Column" Note: all relevant documentation from the superclass has been merged into this document. METHODS
new The constructor accepts the following parameters: * table => "Alzabo::Create::Table" object * name => $name * nullable => 0 or 1 (optional) Defaults to false. * sequenced => 0 or 1 (optional) Defaults to false. * default => $default (optional) * default_is_raw => $boolean (optional) If "default_is_raw" is true, then it will not be quoted when passed to the DBMS in SQL statements. This should be used to allow a default which is a function, like "NOW()". * attributes => @attributes (optional) * length => $length (optional) * precision => $precision (optional) One of either ... * type => $type ... or ... * definition => "Alzabo::Create::ColumnDefinition" object * comment => $comment An optional comment. It returns a new "Alzabo::Create::Column" object. Throws: "Alzabo::Exception::Params" type Returns the column's type as a string. alter This method allows you to change a column's type, length, and precision as a single operation. It should be instead of calling "set_type()" followed by "set_length()". It takes the following parameters: * type => $type * length => $length (optional) * precision => $precision (optional) Throws: "Alzabo::Exception::Params", "Alzabo::Exception::RDBMSRules" set_type ($type) Sets the column's type. Throws: "Alzabo::Exception::Params", "Alzabo::Exception::RDBMSRules" set_table ("Alzabo::Create::Table" object) Sets the "Alzabo::Create::Table" object in which this column is located. Throws: "Alzabo::Exception::Params" name Returns the column's name as a string. set_name ($name) Sets the column's name (a string). Throws: "Alzabo::Exception::Params", "Alzabo::Exception::RDBMSRules" nullable Returns a boolean value indicating whether or not NULLs are allowed in this column. set_nullable (0 or 1) Sets the nullability of the column (this determines whether nulls are allowed in the column or not). Must be 0 or 1. Throws: "Alzabo::Exception::Params" attributes A column's attributes are strings describing the column (for example, valid attributes in MySQL are 'UNSIGNED' or 'ZEROFILL'. This method returns a list of strings of such strings. has_attribute This method can be used to test whether or not a column has a particular attribute. By default, the check is case-insensitive. It takes the following parameters: * attribute => $attribute * case_sensitive => 0 or 1 (defaults to 0) It returns a boolean value indicating whether or not the column has this particular attribute. set_attributes (@attributes) Sets the column's attributes. These are strings describing the column (for example, valid attributes in MySQL are "PRIMARY KEY" or "AUTO_INCREMENT"). Throws: "Alzabo::Exception::RDBMSRules" add_attribute ($attribute) Add an attribute to the column's list of attributes. Throws: "Alzabo::Exception::RDBMSRules" delete_attribute ($attribute) Delete the given attribute from the column's list of attributes. Throws: Throws: "Alzabo::Exception::Params", "Alzabo::Exception::RDBMSRules" default Returns the default value of the column as a string, or undef if there is no default. set_default ($default) Sets the column's default value. length Returns the length attribute of the column, or undef if there is none. precision Returns the precision attribute of the column, or undef if there is none. set_length This method takes the following parameters: * length => $length * precision => $precision (optional) This method sets the column's length and precision. The precision parameter is optional (though some column types may require it if the length is set). Throws: "Alzabo::Exception::RDBMSRules" sequenced The meaning of a sequenced column varies from one RDBMS to another. In those with sequences, it means that a sequence is created and that values for this column will be drawn from it for inserts into this table. In databases without sequences, the nearest analog for a sequence is used (in MySQL the column is given the AUTO_INCREMENT attribute, in Sybase the identity attribute). In general, this only has meaning for the primary key column of a table with a single column primary key. Setting the column as sequenced means its value never has to be provided to when calling "Alzabo::Runtime::Table->insert". Returns a boolean value indicating whether or not this column is sequenced. set_sequenced (0 or 1) Sets the value of the column's sequenced attribute. Throws: "Alzabo::Exception::Params", "Alzabo::Exception::RDBMSRules" is_primary_key Returns a boolean value indicating whether or not this column is part of its table's primary key. is_numeric Returns a boolean value indicating whether the column is a numeric type column. is_character Returns a boolean value indicating whether the column is a character type column. This is true only for any columns which are defined to hold text data, regardless of size. is_blob Returns a boolean value indicating whether the column is a blob column. This is true for any columns defined to hold binary data, regardless of size. definition The definition object is very rarely of interest. Use the "type()" method if you are only interested in the column's type. This methods returns the "Alzabo::Create::ColumnDefinition" object which holds this column's type information. set_definition ("Alzabo::Create::ColumnDefinition" object) Sets the "Alzabo::Create::ColumnDefinition" object which holds this column's type information. former_name If the column's name has been changed since the last time the schema was instantiated, this method returns the column's previous name. comment Returns the comment associated with the column object, if any. set_comment ($comment) Set the comment for the column object. perl v5.8.8 2007-12-23 Alzabo::Create::Column(3pm)
All times are GMT -4. The time now is 11:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy