Sponsored Content
Top Forums Shell Programming and Scripting Transposing X and Y axis of CSV data Post 302602979 by landossa on Tuesday 28th of February 2012 09:59:41 PM
Old 02-28-2012
Fantastic, It works perfectly!
Thanks agama!
 

10 More Discussions You Might Find Interesting

1. AIX

Add printer connected to a axis printserver

Hi guys, I have a AIX 4.3 system, and I need to configure a printer, but that printer it's connected to a axis print server. I have lot of years working with unix, but never added a printer in a AIX system. I need to add using "remote print queue", and add the hostname and ip to the /etc/hosts?... (2 Replies)
Discussion started by: uadm26
2 Replies

2. OS X (Apple)

Adjust X & Y screen axis

I'm using my wife's Macbook, and I just noticed that her screen is off axis, but I can't find a way to adjust it. I've tried playing around with resolution in preferences, but nothing. Maybe a terminal command for adjusting the x and y values of the screen? Any and all suggestions welcomed :) (2 Replies)
Discussion started by: andou
2 Replies

3. UNIX for Dummies Questions & Answers

Transposing data output

Hi, I've just created a shell script that produces the following output: hd1 hd3 hd9 /optnonaix/esp /optnonaix/app/oracle /u06 (564.67) (675.97) (678.90) I would like the output to be as hd1 /optnonaix/esp (564.67) hd3 /optnonaix/app/oracle (675.97) hd9 /u06 (678.90) Need some... (2 Replies)
Discussion started by: bazzabogan
2 Replies

4. Shell Programming and Scripting

Help for a Perl newcomer! Transposing data from columns to rows

I have to create a Perl script which will transpose the data output from my experiment, from columns to rows, in order for me to analyse the data. I am a complete Perl novice so any help would be greatly appreciated. The data as it stands looks like this: Subject Condition Fp1 ... (12 Replies)
Discussion started by: Sarah_W
12 Replies

5. Shell Programming and Scripting

Converting variable space width data into CSV data in bash

Hi All, I was wondering how I can convert each line in an input file where fields are separated by variable width spaces into a CSV file. Below is the scenario what I am looking for. My Input data in inputfile.txt 19 15657 15685 Sr2dReader 107.88 105.51... (4 Replies)
Discussion started by: vharsha
4 Replies

6. Shell Programming and Scripting

Difficult transposing of data from profiles blocks

Hello to all, I really hope some expert or awk guru could help me with this. I don't have how to begin and hope is not so difficult for somebody. I'll expecting how someone could resolve this problem I have to parse this. I have blocks of parameters for each MSISDN and I would like to extract... (9 Replies)
Discussion started by: Ophiuchus
9 Replies

7. Shell Programming and Scripting

Transposing lines in a csv file with sed

Hi I have a large csv file with lines like below Date,Status,orig,dest,in,out,when,where 2012-01-01 00:30:37,I,48,56,23,98,83,34 2012-06-17 15:00:38,I,72,43,12,65,34,12I will really appreciate if someone can help with a sed script to transpose this to 2012-01-01 00:30:37,I,orig,48... (5 Replies)
Discussion started by: kaf3773
5 Replies

8. Shell Programming and Scripting

Problem creating graph with gnuplot with time on x-axis

Let me start by saying I'm new to gnuplot and not very good at unix at all.. Anyway, I'm each minute measuring temperature and humidity and saves the last 60 readings along with time in a textfile, values_minute. The contents of the file is formatted like this: time temperature humidity ... (8 Replies)
Discussion started by: hakro807
8 Replies

9. Shell Programming and Scripting

Compare 2 files of csv file and match column data and create a new csv file of them

Hi, I am newbie in shell script. I need your help to solve my problem. Firstly, I have 2 files of csv and i want to compare of the contents then the output will be written in a new csv file. File1: SourceFile,DateTimeOriginal /home/intannf/foto/IMG_0713.JPG,2015:02:17 11:14:07... (8 Replies)
Discussion started by: refrain
8 Replies

10. Shell Programming and Scripting

Transposing data based on 1st column

I do have a big tab delimited file of the following format aa 344 456 aa 34 67 bb 34 90 bb 23 100 bb 1 89 d 0 12 e 45 678 e 78 90 e 56 90 .... .... .... I would like to transpose the data based on the category on column one and get the output file in the following tab delimited... (8 Replies)
Discussion started by: Kanja
8 Replies
Tangram::Intro(3pm)					User Contributed Perl Documentation				       Tangram::Intro(3pm)

NAME
Tangram::Intro - an introduction to Tangram SYNOPSIS
# http://www.faqs.org/rfcs/rfc2324.html perl -MNet::HTCPCP -le 'Net::HTCPCP->new("BREW")->send' perldoc Tangram::Intro YIN AND YANG OF OBJECT PERSISTENCE
There are yin and yang approaches to object persistence. Are you a yin programmer or a yang programmer? yin (without, empty) - "I just want to store my objects" yang (with, full) - "I want my database to represent my object structure" Please skip to the introduction that suits you. YIN OBJECT PERSISTENCE (A LA PIXIE) One yin approach is to have a single table of objects - +----+------------------+ | ID | DATA | +----+------------------+ This is the raw technique used by modules like MLDBM. Stick objects in, get a tag (or, insert with a tag), and later present that tag to get the objects out. Modules like Pixie extend this concept, to allow you to have objects that are persistent (ie, have been stored and could be retrieved again by ID or name), inside other structures that are also persistent. This is achieved without storing the same structure twice, without hav- ing to fetch all objects that are in a single persistent structure, and without requiring that the objects being stored even know that they are being stored. Fantastic. This method is fine for any application that doesn't mind single threading data manipulation on objects. Enough banter, let's see some code; here's a project schema: package MyProject::Tangram; use Heritable::Types; use Tangram::Core; use Tangram::Type::Dump::Any; our $schema = Tangram::Schema->new ( { classes => [ HASH => { fields => { idbif => # poof! undef }, }, ], } ); sub db { Tangram::Storage->new($schema, @_) } This defines a sort of "store anything" schema. You could deploy your database like this: my $dbh = DBI->connect ("dbi:mysql:tangram", "user", "pass"); Tangram::Relational->deploy ( $MyProject::Tangram::schema, $dbh ); And then shove objects in and out like this: use MyProject::Tangram; my $storage = MyProject::Tangram::db ("dbi:mysql:tangram", "user", "pass"); my $object = bless { first_name => "Homer", last_lame => "Simpson", }, "NaturalPerson"; my $oid = $storage->insert($object); my $homer = $storage->load($oid); If this Pixie-like functionality is all you're after, then you can stop there, and isn't much slower than Pixie. You also get the choice of whether you want to freeze data structures in your database via "Data::Dumper", "Storable" or "YAML". YANG OBJECT PERSISTENCE If you wish to enable concurrency without paying a large performance penalty for most standard types of data access, then you may need to extract single parts of your objects into columns. That way, you can make the most use of your database's (hopefully) highly tuned and refined ability to cache and manipulate data indices. In that case, you may choose to start with mapping all of your object's properties to database columns (as was the only option before Tan- gram 2.08): package MyProject::Tangram; use Tangram::Core; our $schema = Tangram::Schema->new ( { classes => [ NaturalPerson => { fields => { string => { }, integer => { } }, }, ], } ); sub db { Tangram::Storage->new($schema, @_) } Tangram has been transaction-savvy since version 1. So long as you are careful to flush Tangram's object cache, before you start doing selects that lock rows for update, then you can easily write transaction protected programs. perl v5.8.8 2006-03-29 Tangram::Intro(3pm)
All times are GMT -4. The time now is 11:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy