The way you approach your problem is not quite evident to me. You may do this as an exercise in the frayed way shown, but how about a "monlithic" approach, using one single awk script only, in lieu of expensively running 11 external commands? Something like
Hi,
I am new to unix and shell scripting.In my script,there is a line using the "if" conditional -
if && ; then
do something
Here "x" is a variable holding string value.If it is not equal to a comma or a string,only then I want to enter the "if" loop. But I am getting error while... (1 Reply)
Hi,
I am new to unix and shell scripting.In my script,there is a line using the "if" conditional -
if && ; then
do something
Here "x" is a variable holding string value.If it is not equal to a comma or a string,only then I want to enter the "if" loop. But I am getting error while... (12 Replies)
Hi, Iam new to unix. I have one input file .
Input file :
ID1~Name1~Place1
ID2~Name2~Place2
ID3~Name3~Place3
I need output such that only first column should change to fixed width column of 15 characters of length.
Output File:
ID1<<12 spaces>>Name1~Place1
ID2<<12... (5 Replies)
Hi
My input file looks like
field1 field2 field3 field4 field5
field1 field2 field3 field4 field5
field1 field2 field3 field4 field5
::::::::::::
::::::::::::
There may be one space of multiple spaces between fields and no fields contains spaces in them.
If field 1 to 4 are equal for... (3 Replies)
Match column 3 in file1 to column 1 in file 2 and replace with column 2 from file2
file 1 sample
SNDK 80004C101 AT
XLNX 983919101 BB
NETL 64118B100 BS
AMD 007903107 CC
KLAC 482480100 DC
TER 880770102 KATS
ATHR 04743P108 KATS... (7 Replies)
Dear All,
I indeed your help for managing resarch data file.
for example I have,
data1.txt :
type of atoms z vz
Si 34 54
O 20 56
H 14 13
Si 40 17
O ... (11 Replies)
This is my input file :
# cat list 20130430121600, cucm, location,76,2 20130430121600,cucm1,location1,76,4 20130430122000,cucm,location,80,8 20130430122000,cucm1,location1,90,8 20130430140000,cucm1,location1,87,11 20130430140000, cucm,location,67,9
This is the required output
... (1 Reply)
Hi,
I have a file (stats.txt) with columns like in the example below. Destination IP address, timestamp, TCP packet sequence number and packet length.
destIP time seqNo packetLength
1.2.3.4 0.01 123 500
1.2.3.5 0.03 44 1500
1.3.2.5 0.08 44 1500
1.2.3.4 0.44... (12 Replies)
Please know that I am very new to unix and trying to learn 'on the job'. I'm only manipulating large tab-delimited files (millions of rows), but I'm stuck and don't know how to proceed with the following. Hoping for some friendly advice :)
I have 2 tab-delimited files - with differing column &... (10 Replies)
Discussion started by: GTed
10 Replies
LEARN ABOUT DEBIAN
alzabo::create::columndefinition
Alzabo::Create::ColumnDefinition(3pm) User Contributed Perl Documentation Alzabo::Create::ColumnDefinition(3pm)NAME
Alzabo::Create::ColumnDefinition - Column definition object for schema creation
SYNOPSIS
use Alzabo::Create::ColumnDefinition;
DESCRIPTION
This object holds information on a column that might need to be shared with another column. The reason this class exists is that if a col-
umn is a key in two or more tables, then some of the information related to that column should change automatically in multiple places
whenever it changes at all. Right now this is only type ('VARCHAR', 'NUMBER', etc) and length/precision information. This object also has
an 'owner', which is the column which created it.
INHERITS FROM
"Alzabo::ColumnDefinition"
Note: all relevant documentation from the superclass has been merged into this document.
METHODS
new
This method takes the following parameters:
* owner => "Alzabo::Create::ColumnDefinition" object
* type => $type
It returns a new "Alzabo::Create::ColumnDefinition" object.
alter
See the "Alzabo::Column->alter()" method for details.
type
Returns the object's type as a string.
set_type ($string)
Sets the object's type.
Throws: "Alzabo::Exception::Params", "Alzabo::Exception::RDBMSRules"
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)
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::Params", "Alzabo::Exception::RDBMSRules"
owner
Returns the "Alzabo::Create::Column" object that owns this definitions (the column that created it).
perl v5.8.8 2007-12-23 Alzabo::Create::ColumnDefinition(3pm)