Check the format of your file at the positions 5 to 7, do you have more then 4 combinations?
Try this, it gives filenames as TXX SYY TYY etc, the 5 to the 7 positions of the lines:
I have a large file that I am pulling only certain fields out of but my output I would like to rearrange the field order via a pipe. I have been looking through the site and man pages and have come to a loss.
I am running on HP
cut -c33-38,44-46,62-65,91-98 <file> | grep -e <value> >... (4 Replies)
Hello all,
I have a text file that is arranged:
name 3 7 2 9 5
jim a d e g k
max d g u x g
rob f w v k o
This is just an example as my real file has >1000 individuals and >64,000 columns. I need to rearrange the file so that the columns appear in numerical order so that
name... (3 Replies)
Hello,
I spent all day trying to write a script and cannot find the solution :(
I have plenty files looking like this:
several hundred
lines precede
the following interesting
Bla xxx:
Blub = -7537.37687
Blub = -100.644746
Blub = -3247.61954
.
.
.
Blub = 1324.82567
Blub =... (2 Replies)
Hi experts,
I've used several solutions from this forum to delete nonsense and rearrange data in the project file I'm working on. I'm hoping you guys can give me some tips on further rearranging the data (I've seen a few solutions by searching, but one specific item has me stumped, which is only... (5 Replies)
Hi,
I have a file that I re-arranged using awk and unix commands to produce a file that looks like this:
JOE
JOE
JOE
JOE
JOE
BOB
BOB
HI
HI
HI
I want to count how many of the same rows there are and print it on the second column while only maintaining the original name once.
The... (5 Replies)
i have a file as below :-
100 D 22
100 T 33
100 C 89
101 C 55
101 D 44
102 D 88
103 T 22
103 C 13
output format :-
<number> <D value> <C Value> <T Value>
if no value then zero.
I want output as :-
100 22 33 89
101 44 55 0
102 88 0 0
103 0 13 22 (3 Replies)
Please help! I figured I would take this one to the experts. I'm working with a field that contains contents such as:
LastName FirstName
For example:
Smith John
I'm trying to take this field and split it so that it is two separate fields (first name and last name). I then need to print... (5 Replies)
Hi Guys
I normally do thins with a Windows program but I am trying to rearrange a filename based on delimiters in Ubuntu.
Example
v017 __ Detective Academy Q #133 Murder in the Village Of Suspension Bridges &&& Part 9.cbz
=
Detective Academy Q v017 #133 Murder in the Village Of Suspension... (9 Replies)
Hello everybody,
I've got the following problem:
The data set I have is an ASCII file containing a header over 4 lines and the actual data comprised of dezimal numbers in a 1000x1000 grid (1000 lines and 1000 columns).
Since I want to plot the data in GMT I need to convert it into the... (3 Replies)
I have a text file like this, I would like to rearrange the first column (Name) according to the third column(percentage)in descending order. I mean methionine with the highest percentage should be the first one to appear under the name column. But I also want to exclude the headers from this... (2 Replies)
Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSuUser(Contributed Perl DocPerl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr(3pm)NAME
Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr - Use 4-argument "substr" instead of writing "substr($foo, 2, 6) = $bar".
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
Conway discourages the use of "substr()" as an lvalue, instead recommending that the 4-argument version of "substr()" be used instead.
substr($something, 1, 2) = $newvalue; # not ok
substr($something, 1, 2, $newvalue); # ok
The four-argument form of "substr()" was introduced in Perl 5.005. This policy does not report violations on code which explicitly
specifies an earlier version of Perl (e.g. "use 5.004;").
CONFIGURATION
This Policy is not configurable except for the standard options.
SEE ALSO
"substr" in perlfunc (or "perldoc -f substr").
"4th argument to substr" in perl5005delta
AUTHOR
Graham TerMarsch <graham@howlingfrog.com>
COPYRIGHT
Copyright (c) 2005-2011 Graham TerMarsch. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-06-07 Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr(3pm)