03-14-2013
Are names always a single character?
If not, are names always the same length?
If not, is there a maximum length you want to consider, or should the output column widths adjust to the names found in the input?
How big is the array (i.e., number of different names)?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have few days to complete my awk homework. But I'm stucked. i hope some1 will help me out.
I have to inverse n x n matrix, but I have problems with finding the determinant of the matrix.
I found the algoritm, how to find a determinant of n x n matrix:... (0 Replies)
Discussion started by: vesyyr
0 Replies
2. Shell Programming and Scripting
I need to inverse a matrix given in a file.
The problem is I'm stuck with writing determinant finding algoritm into code.
I found this algoritm about finding determinant of nxn matrix. This is what i need:
Matrices and Determinants
and here:
a11 a12 a13
a21 a22 a23
a31 a32 a33... (0 Replies)
Discussion started by: vesyyr
0 Replies
3. Shell Programming and Scripting
hi there
I'm very new in programing and i've started with awk.
I'm processing 200 data files and I need to do some precessing on them.
The files have 3 columns with N-lines
for each line a have on the first and second value is the same for all the files and only the third is variable. like... (2 Replies)
Discussion started by: philstar
2 Replies
4. Shell Programming and Scripting
Hi everyone
I am very new at awk but think that that might be the best strategy for this. I have a matrix very similar to a correlation matrix and in practical terms I need to convert it into a list containing the values from the matrix (one value per line) with the first field of the line (row... (5 Replies)
Discussion started by: stonemonkey
5 Replies
5. UNIX for Dummies Questions & Answers
hello all,
i have an input file like that
A A X0
A B X1
A C X2
...
A Z Xx
B A X1
B B X3
....
Z A Xx
Z B X4
and i want to have an output like that
A B C D
A X0 X1 X2 Xy
B X1 X3 X4 (4 Replies)
Discussion started by: TheTransporter
4 Replies
6. Shell Programming and Scripting
Hi there,
If anyone can help me sorting out this small task would be great. Given a matrix like the following:
100 3 3 3 3 3 ...
200 5 5 5 5 5 ...
400 1 1 1 1 1 ...
500 8 8 8 8 8 ...
900 0 0 0 0... (5 Replies)
Discussion started by: JRodrigoF
5 Replies
7. Shell Programming and Scripting
Hi guys,
here https://www.unix.com/shell-programming-scripting/193043-3-column-csv-correlation-matrix-awk-perl.html I found awk script converting
awk '{
OFS = ";"
if (t) {
if (l != $1)
t = t OFS $1
} else t = OFS $1
x = x ? x OFS $NF : $NF
l = $1
}... (2 Replies)
Discussion started by: grincz
2 Replies
8. Shell Programming and Scripting
Hi, every one. I have two files ,one is in matrix like this, one is a list with the same data as the matrix.
AB AE AC AD AA AF
SA 3 4 5 6 4 6
SC 5 7 2 8 4 3
SD 4 6 5 3 8 3
SE 45 ... (5 Replies)
Discussion started by: xshang
5 Replies
9. Shell Programming and Scripting
Greetings
I have a file formatted like this:
rhino grey weight=1003;height=231;class=heaviest;histology=9,0,0,8
bird white weight=23;height=88;class=light;histology=7,5,1,0,0
turtle green weight=40;height=9;class=light;histology=6,0,2,0... (2 Replies)
Discussion started by: Twinklefingers
2 Replies
10. Shell Programming and Scripting
input
A1 B1 A2 B2
0 0 1 1
1 0 0 1
0 1 1 0
1 1 1 1
Output
label A1 B1 A2 B2
A1 2 1 1 2
B1 1 2 2 1
A2 1 2 3 2
B2 2 1 2 3
Ex:
The number of times that A1 and B1 row values are both 1 should be printed as output.
The last row of A1 and B1 in the input match by having 1 in both... (4 Replies)
Discussion started by: quincyjones
4 Replies
RLFE(1) General Commands Manual RLFE(1)
NAME
rlfe - "cook" input lines for other programs using readline
SYNOPSIS
rlfe [-l filename] [-a] [-n appname] [-hv] [command [arguments ...]]
DESCRIPTION
rlfe lets you use history and line-editing in any text oriented tool. This is especially useful with third-party proprietary tools that
cannot be distributed linked against readline. It is not perfect but it works pretty well.
OPTIONS
-a append to the logfile (default is to overwrite).
-l filename
log into file.
-n appname
set the readline application name.
-h print usage string.
-v print version information.
SEE ALSO
readline(3)
AUTHOR
Per Bothner
PROBLEMS
/TODO
When running mc -c under the Linux console, mc does not recognize mouse clicks, which mc does when not running under fep.
Pasting selected text containing tabs is like hitting the tab character, which invokes readline completion. We don't want this. I don't
know if this is fixable without integrating fep into a terminal emulator.
Echo suppression is a kludge, but can only be avoided with better kernel support: We need a tty mode to disable "real" echoing, while still
letting the inferior think its tty driver to doing echoing. Stevens's book claims SCR$ and BSD4.3+ have TIOCREMOTE.
The latest readline may have some hooks we can use to avoid having to back up the prompt.
Desirable readline feature: When in cooked no-echo mode (e.g. password), echo characters are they are types with '*', but remove them when
done.
A synchronous output while we're editing an input line should be inserted in the output view.PPbefore* the input line, so that the lines
being edited (with the prompt) float at the end of the input.
A "page mode" option to emulate more/less behavior: At each page of output, pause for a user command. This required parsing the output to
keep track of line lengths. It also requires remembering the output, if we want an option to scroll back, which suggests that this should
be integrated with a terminal emulator like xterm.
RLFE(1)