02-21-2012
transponse row to coloumn output
dears
i have row data as below:
========================================================================================
Session Count: 24580
Session Count: 13426
Session Count: 22533
Session Count: 0
Session Count: 0
Session Count: 15036
Session Count: 11625
Session Count: 6942
Session Count: 11958
Session Count: 25082
Session Count: 22489
======================================================
Session Count: 24354
Session Count: 13457
Session Count: 22425
Session Count: 0
Session Count: 0
Session Count: 14913
Session Count: 11553
Session Count: 6810
Session Count: 11714
Session Count: 24920
Session Count: 22212
=======================================================
and i want to make the output like this:
Session Count: Session Count: Session Count: Session Count: Session Count: Session Count: Session Count: Session Count: Session Count: Session Count: Session Count:
24580 13426 22533 0 0 15036 11625 6942 11958 25082 22489
============== ==========================================================================
Session Count: Session Count: Session Count: Session Count: Session Count: Session Count: Session Count: Session Count: Session Count: Session Count: Session Count:
24354 13457 22425 0 0 14913 11553 6810 11714 24920 22212
============== ==========================================================================
so any one can help me in getting a script can do this?
thank you
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have a file like this .....
empno ----- ename ----- job
1 ----- scott----- manager
2----- ford----- salesman
3 ----- mark---- president
in this i wanna display second column means ename... (6 Replies)
Discussion started by: naughty21
6 Replies
2. Shell Programming and Scripting
hi all,
I use shell script to fetch some data's from my sybase database and i redirect my output to a file , i have some disorder in my file.my current o/p file looks like,
firstrecord|secondrecord|thirdrecord|fourthrecord|fivthrecord|s
ixhrecord|seventhrecord|
... (10 Replies)
Discussion started by: ulin
10 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I have two files in which i want to copy one coloumn from one file to another such that it appears as a separate coloumn in the other file.Please note
there already exists a coloumn in the other file.For eg
in file 1(first file) i have
12
23
35
in file 2(other file) i have
34
45... (2 Replies)
Discussion started by: navjotsingh
2 Replies
4. Shell Programming and Scripting
Hi,
I have a system under test, and I use a script that does a ps.
The output, is in the following format, it's basically the timestamp, followed by the rss and vsize.
09:03:57 68404 183656 68312 181944 69860 217360 67536 182564 69072 183172 69032 199276
09:04:27 68752 183292 70000 189020... (5 Replies)
Discussion started by: Bloke
5 Replies
5. Shell Programming and Scripting
Getting tired of cut-and-paste...so I thought I would post a question.
how do I change this column output to a single row?
from this:
# vgdisplay -v /dev/vgeva05 | grep dsk | awk '{print $3}'
/dev/dsk/c6t0d5
/dev/dsk/c11t0d5
/dev/dsk/c15t0d5
/dev/dsk/c18t0d5
/dev/dsk/c7t0d5... (8 Replies)
Discussion started by: mr_manny
8 Replies
6. Shell Programming and Scripting
Hello All,
i have a file with the contents like shown below
Name = POLICY1
Selected = 1
Written = 0
Name = POLICY2
Selected = 6
Written = 8
Name = POLICY3
Selected = 4
Written = 26
I want the output to be... (5 Replies)
Discussion started by: vinredmac
5 Replies
7. Shell Programming and Scripting
I have a file that looks that this:
820 890 530
1650 1600 1800
1850 1900 2270
1640 2300 1670
2080 2200 2350
1150 1630 2210
I would like to output the mean and standard deviation of each row so that my final output would look like this
820 890 530 746.667 155.849
1650 1600 1800... (5 Replies)
Discussion started by: kayak
5 Replies
8. Shell Programming and Scripting
Hi,
I am fairly new to Unix scripting. We are running Solaris 5.10.
I have the following question: Assume a text file with one text
column, followed by 2 integer columns.
How would I generate a script or, preferably, a command that will output
the rows in which the value of the third... (6 Replies)
Discussion started by: QZ1
6 Replies
9. Shell Programming and Scripting
I have several csv files, each hundreds of rows with the following layout
"","SEQ ID No. 1 Subject # 20"
"BPM neg.:",68.83
"BPM normal:",68.48
"SEQ ID No. 1 Subject # 20",79.33
"","SEQ ID No. 10 Subject # 20"
"BPM neg.:",68.05
"BPM normal:",68.58
"SEQ ID No. 10 Subject # 20",81.63... (6 Replies)
Discussion started by: bertbrutzel
6 Replies
10. Shell Programming and Scripting
I pass a number to my script. Passing "1" below.
./getfile.sh 1
echo "User entered: $1"
ls -ltr *.conf | sed -n '$p'
I wish to use ls -ltr i.e list files in ascending order of time the latest showing at the bottom of the output.
Number 1 should get me the last row of ls -ltr output i.e... (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT DEBIAN
plack::session
Plack::Session(3pm) User Contributed Perl Documentation Plack::Session(3pm)
NAME
Plack::Session - Middleware for session management
SYNOPSIS
# Use with Middleware::Session
enable "Session";
# later in your app
use Plack::Session;
my $app = sub {
my $env = shift;
my $session = Plack::Session->new($env);
$session->id;
$session->get($key);
$session->set($key, $value);
$session->remove($key);
$session->keys;
$session->expire;
};
DESCRIPTION
This is the core session object, you probably want to look at Plack::Middleware::Session, unless you are writing your own session
middleware component.
METHODS
new ( $env )
The constructor takes a PSGI request env hash reference.
id This is the accessor for the session id.
Session Data Management
These methods allows you to read and write the session data like Perl's normal hash.
get ( $key )
set ( $key, $value )
remove ( $key )
keys
session, dump
Session Lifecycle Management
expire
This method can be called to expire the current session id.
BUGS
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to
cpan-RT.
AUTHOR
Stevan Little <stevan.little@iinteractive.com>
COPYRIGHT AND LICENSE
Copyright 2009, 2010 Infinity Interactive, Inc.
<http://www.iinteractive.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.4 2011-03-29 Plack::Session(3pm)