9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have data of an excel files as given below,
file1
org1_1 1 1 2.5 100
org1_2 1 2 5.5 98
org1_3 1 3 7.2 88
file2
org2_1 1 1 2.5 100
org2_2 1 2 5.5 56
org2_3 1 3 7.2 70
I have multiple excel files as above shown.
I have to copy column 1, column 4 and paste into a new excel file as... (26 Replies)
Discussion started by: dineshkumarsrk
26 Replies
2. Shell Programming and Scripting
sample .csv files with 7 columns.I want to delete the last column from each of the below files but retain their file names (1_ContractDocuments.csv,2_ContractDocuments.csv etc.)
There can be more files like 3_ContractDocuments.csv , 4_ContractDocuments.csv . Can you please help
source .csv... (5 Replies)
Discussion started by: paul1234
5 Replies
3. UNIX for Dummies Questions & Answers
Hello Gurus,
Im new to scripting. Got struck with a file merge issue in Unix. Was looking for some direction and stumbled upon this site. I saw many great posts and replies but couldnt find a solution to my issue. Greatly appreciate any help..
I have three csv files -> Apex_10_Latest.csv,... (1 Reply)
Discussion started by: wamshi
1 Replies
4. Shell Programming and Scripting
Hi Friends,
$ cat test1.txt
emeka:1438
shelley:1439
dmeyer:1440
kurtarn:1441
abdul:1442
$ cat test2.txt
1:a
2:b
3:c
4:d
$ cat test3.txt
cat:dog:bat
man:hot:cold (5 Replies)
Discussion started by: Jewel
5 Replies
5. Shell Programming and Scripting
I am performing the following operation on a file that looks like this
1000 0 10 479.0 1115478.07497 0.0 0.0 0.0872665
1000 10 20 1500.0 3470012.29304 0.0 0.0 0.261799
1000 20 30 2442.0 5676346.87758 0.0 0.0 0.436332
1000 30 40 3378.0 7737905.30957 0.0 0.0 0.610865
1000 40 50 4131.0... (2 Replies)
Discussion started by: kayak
2 Replies
6. Shell Programming and Scripting
I have roughly ~30 .txt files in a directory which all have unique names. These files all contain text arranged in columns separated by whitespace (example file:
[#YY MM DD hh mm WDIR WSPD GST WVHT DPD APD MWD PRES ATMP WTMP DEWP VIS TIDE
#yr mo dy hr mn degT m/s m/s m sec ... (5 Replies)
Discussion started by: aozgaa
5 Replies
7. Shell Programming and Scripting
I have several sequential files with name stat.1000, stat.1001....to stat.1020 with a format like this
0.01 1 3822 4.97379915032e-14 4.96982253992e-09 0
0.01 3822 1 4.97379915032e-14 4.96982253992e-09 0
0.01 2 502 0.00993165137406 993.165137406 0
0.01 502 2 0.00993165137406 993.165137406 0... (6 Replies)
Discussion started by: kayak
6 Replies
8. UNIX for Advanced & Expert Users
Hi
I have multiple files each with two columns and I need to combine all those file into a tab delimited file. (multiple entry with same name separated by a comma)
The content of the files are as follows:
---
file1.txt:
name var1
aaa xx
aaa gg
bbb yy
ddd zz
---
file2.txt
... (8 Replies)
Discussion started by: mary271
8 Replies
9. Shell Programming and Scripting
I have multiple files; each file contains a certain data in a column view
simply i want to combine all those files into one file in columns
example
file1:
a
b
c
d
file 2:
1
2
3
4
file 3:
G (4 Replies)
Discussion started by: ahmedamro
4 Replies
Alzabo::Create::Index(3pm) User Contributed Perl Documentation Alzabo::Create::Index(3pm)
NAME
Alzabo::Create::Index - Index objects for schema creation
SYNOPSIS
use Alzabo::Create::Index;
DESCRIPTION
This object represents an index on a table. Indexes consist of columns and optional prefixes for each column. The prefix specifies how
many characters of the columns should be indexes (the first X chars). Some RDBMS's do not have a concept of index prefixes. Not all col-
umn types are likely to allow prefixes though this depends on the RDBMS. The order of the columns is significant.
INHERITS FROM
"Alzabo::Index"
Note: all relevant documentation from the superclass has been merged into this document.
METHODS
new
The constructor takes the following parameters:
* table => "Alzabo::Create::Table" object
The table that this index is indexing.
* columns => [ "Alzabo::Create::Column" object, .. ]
* columns => [ { column => "Alzabo::Create::Column" object, prefix => $prefix }, repeat as needed ... ]
This parameter indicates which columns that are being indexed. It can either be an array reference of column objects, or an array ref-
erence of hash references, each with a key called column and one called prefix.
The prefix key is optional.
* unique => $boolean
Indicates whether or not this is a unique index.
* fulltext => $boolean
Indicates whether or not this is a fulltext index.
* function => $string
This can be used to create a function index where supported. The value of this parameter should be the full function, with column
names, such as "LCASE( username )".
The "columns" parameter should include all the columns used in the function.
Returns a new "Alzabo::Create::Index" object.
Throws: "Alzabo::Exception::Params", "Alzabo::Exception::RDBMSRules"
table
Returns the "Alzabo::Create::Table" object to which the index belongs.
columns
Returns an ordered list of the "Alzabo::Create::Column" objects that are being indexed.
add_column
Adds a column to the index.
This method takes the following parameters:
* column => "Alzabo::Create::Column" object
* prefix => $prefix (optional)
Throws: "Alzabo::Exception::Params", "Alzabo::Exception::RDBMSRules"
delete_column ("Alzabo::Create::Column" object)
Deletes the given column from the index.
Throws: "Alzabo::Exception::Params", "Alzabo::Exception::RDBMSRules"
prefix ("Alzabo::Create::Column" object)
A column prefix is, to the best of my knowledge, a MySQL specific concept, and as such cannot be set when using an RDBMSRules module for a
different RDBMS. However, it is important enough for MySQL to have the functionality be present. It allows you to specify that the index
should only look at a certain portion of a field (the first N characters). This prefix is required to index any sort of BLOB column in
MySQL.
This method returns the prefix for the column in the index. If there is no prefix for this column in the index, then it returns undef.
set_prefix
This method takes the following parameters:
* column => "Alzabo::Create::Column" object
* prefix => $prefix
Throws: "Alzabo::Exception::Params", "Alzabo::Exception::RDBMSRules"
unique
Returns a boolean value indicating whether the index is a unique index.
set_unique ($boolean)
Sets whether or not the index is a unique index.
fulltext
Returns a boolean value indicating whether the index is a fulltext index.
set_fulltext ($boolean)
Set whether or not the index is a fulltext index.
Throws: "Alzabo::Exception::Params", "Alzabo::Exception::RDBMSRules"
register_column_name_change
This method takes the following parameters:
* column => "Alzabo::Create::Column" object
The column (with the new name already set).
* old_name => $old_name
This method is called by the table object which owns the index when a column name changes. You should never need to call this yourself.
Throws: "Alzabo::Exception::Params"
id
The id is generated from the table, column and prefix information for the index. This is useful as a canonical name for a hash key, for
example.
Returns a string that is the id which uniquely identifies the index in this schema.
AUTHOR
Dave Rolsky, <autarch@urth.org>
perl v5.8.8 2007-12-23 Alzabo::Create::Index(3pm)