07-26-2017
So, what have you tried to achieve this? If you show us your code so far then we can suggest changes to help. That way, we're not just writing code that you don't understand and can't support and we can see what other things your description might be missing.
Giving us something that doesn't work along with the output/errors and the desired output from real input would be very useful. We're all here to learn, after all.
Thanks again,
Robin
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Am trying to transpose a set of rows into a set of comma separated values.
For eg. if the output of
ps -ef | tail +2 | awk 'BEGIN{ FS=" " } { print $2 }'
is
0
1
3
4
I need to transpose it to -
'0','1','3','4'
Am currently trying - (4 Replies)
Discussion started by: iamwha1am
4 Replies
2. Shell Programming and Scripting
Any tips on how I can awk the input data to display the desired output per below? Thanking you in advance.
input test data:
2
2010-02-16 10:00:00
111111111111 bytes
99999999999 bytes
90%
4
2010-02-16 12:00:00
333333333333 bytes
77777777777 bytes
88%
5
2010-02-16 11:00:00... (4 Replies)
Discussion started by: ux4me
4 Replies
3. Shell Programming and Scripting
Need to transpose in awk rows to column like this:
input:
A1,6,5,4 3,2,1,
A2,8,7,9,10,11,12,13,14
A3,1,2,3,5,7,8,9
A4,9,4,8,1,5,3,
output:
A1,1
A1,2
A1,4
...
A2,7
A2,8
...
A3,1
A3,2
...
A4,1
A4,3 (5 Replies)
Discussion started by: sdf
5 Replies
4. Shell Programming and Scripting
Hi Experts,
Can you please help me in transposing Datefield from rows to column and calculate the time difference for each of the Jobids:
Input File:
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 12:36:26,JOB_5350
Required Output:... (6 Replies)
Discussion started by: asnandhakumar
6 Replies
5. Shell Programming and Scripting
Gurus:
How can I transpose the output below to a format in which I can plot a graph to show VSZ memory usage by PIDs?
stdout:
Tue Jan 22 07:29:19 CUT 2013
42336296 1841272 java wilyadm
21889232 438616 jlaunch sidadm
42532994 414336 jlaunch sidadm
Tue Jan 22 07:49:20 CUT 2013... (1 Reply)
Discussion started by: ux4me
1 Replies
6. Shell Programming and Scripting
I can no longer find my commands, but I use to be able to transpose data with common fields from a single column to rows using a command line. My data is separated as follows:
NAME=BOB
ADDRESS=COLORADO
PET=CAT
NAME=SUSAN
ADDRESS=TEXAS
PET=BIRD
NAME=TOM
ADDRESS=UTAH
PET=DOG
I would... (7 Replies)
Discussion started by: docdave78
7 Replies
7. Shell Programming and Scripting
How to change the uploaded weekly file data to the following format?
New Well_Id,Old Well_Id,District,Thana,Date,Data,R.L,WellType,Lati.,Longi.
BAG001,PT006,BARGUNA,AMTALI,1/2/1978,1.81,2.29,Piezometer,220825,901430
BAG001,PT006,BARGUNA,AMTALI,1/9/1978,1.87,2.29,Piezometer,220825,901430... (3 Replies)
Discussion started by: sara.nowreen
3 Replies
8. Shell Programming and Scripting
Dear all,
Plz let me know syntax for transposing rows into column in perl,
I am having 30 csv files which are merged into a single xls sheet.
but i want to transpose each row into column in excel sheet in each tab (1 CSV = 1tab in xls sheet)
example is as below
... (0 Replies)
Discussion started by: sagar_1986
0 Replies
9. Programming
Hi,
i am having an HDFS file which is comma seperated, i need to transpose from rows to column only the header columns
text.csv
cnt,name,place
1,hi,nz
2,hello,aus
I need
cnt,
name,
place
while using below command in hadoop getting the error
hadoop fs -fmt -1 text.csv (0 Replies)
Discussion started by: rohit_shinez
0 Replies
10. UNIX for Beginners Questions & Answers
Hello Everyone,
I am very new to the world of regular expressions. I am trying to use grep/sed for the following:
Input file is something like this and there are multiple such files:
abc
1
2
3
4
5
***END***
abc
6
7
8
9
***END***
abc
10 (2 Replies)
Discussion started by: shellnewuser
2 Replies
LEARN ABOUT DEBIAN
test::bdd::cucumber
Test::BDD::Cucumber(3pm) User Contributed Perl Documentation Test::BDD::Cucumber(3pm)
NAME
Test::BDD::Cucumber - Feature-complete Cucumber-style testing in Perl
VERSION
version 0.11
DESCRIPTION
A sane and complete Cucumber implementation in Perl
QUICK LINKS
Cucumber on Perl on MetaCPAN <https://metacpan.org/release/Test-BDD-Cucumber>
WARNING
This is beta software, at best. The interface is unlikely to undergo major incompatible changes, but it's certainly possible. Do have a
read of the Bugs and Missing section below so you're not surprised when these things don't work.
In almost all cases, where the behaviour of this module is different from the real Cucumber, the plan is to move it to be more similar to
that.
The idea is that the first 1.0 release will be the first production release and before that, you're on your own. There are many things
still to add, but I'm using it to do Real Things already.
NEXT STEPS
If you are completely new to Cucumber, you'd get a pretty overview from reading our short and crunchy Tutorial.
If you already understand Cucumber, and just want to get started then you should read the Step-writing quick-start guide, the documentation
for our command-line tool App::pherkin, and How to integrate with Test::Builder.
If you want to extend or integrated Test::BDD::Cucumber then you'd probably be more interested in our Architecture overview.
TEN SECOND GUIDE TO USING THIS IN YOUR CI ENVIRONMENT
Don't use the command-line tool, App::pherkin. Instead, look at the How to integrate with Test::Builder document.
BUGS, MISSING, AND LIMITATIONS
The following things do not work in this release, although support is planned in the very near future:
o Localization
o Step Argument Transforms
o Quoting in tables is broken
o Placeholders in pystrings is broken
o Explicit Step Outline notation doesn't work (although step outlines are explicitly supported)
o Unicode support is probably a bit ropey
o Pherkin isn't really fit for purpose yet
CODE
On Github, of course: https://github.com/sheriff/test-bdd-cucumber-perl <https://github.com/sheriff/test-bdd-cucumber-perl>.
AUTHOR
Peter Sergeant "pete@clueball.com"
LICENSE
Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl
perl v5.14.2 2012-05-20 Test::BDD::Cucumber(3pm)