Hi,
Thanks a lot , I have done it.
I have got the following output for all files (just showing for one file and naming it as o.txt) :
Further, I need your help. I have 10 more files, all of same format (11.txt) as follows, showing 2 repeats from this file:
ENDMDL is coming around 10000 times in each file. If I give input of 100 at $1 from o.txt, then it should output the first repeat from 11. txt ending with ENDMDL.
So, corresponding to first column of o.txt, I want to retreive the repeat at the number $1/100 from 11.txt i.e. if $1=2000, then I want to retreive the pattern where ENDMDL is at 20 place.
Please guide me.
Thanks again
---------- Post updated at 10:40 PM ---------- Previous update was at 09:52 PM ----------
Please guide me. Its urgent.
Thanks
Last edited by Scrutinizer; 12-31-2012 at 03:53 AM..
Reason: code tags
Hello,
I have a file.txt with 20000 lines and 2 columns each which consists of current_filename and new_filename . I want to create a script to find files in a directory with current_filename and move it to new folder with new_filename.
Could you please help me how to do that??
... (2 Replies)
Hi,
I have a file which is:-
1 6 4 8 2 3
2 1 9 3 2 1
3 3 5 6 3 1
4 9 7 8 2 3
I would like to sort from field $2 to field $6 for each of the line to:-
1 2 3 4 6 8
2 1 1 2 3 9
3 1 3 3 5 6
4 2 3 7 8 9
I came across this Arrays on example 26-6. But it is much complicated. I am... (7 Replies)
Hi,
I'm trying to read a file containing lines with spaces in them.
The inputfile looks like this
------------------------------
Command1 arg1 arg2
Command2 arg5 arg6 arg7
-------------------------------
The shell code looks like this...
lines=`awk '{ print }' inputfile`
... (2 Replies)
I'm trying to reformat some tide information into a useable format and failing.
Input file is....
4452 CHENNAI (MADRAS)
13°06'N, 80°18'E India East Coast 01 June 2009 UT(GMT)
Data Area 3. Indian Ocean (northern part) and Red Sea to Singapore
01/06/2009
00:00 0.7 m
00:20 0.7 m
00:40... (3 Replies)
Hi Everyone,
I have an input file in the following format:
score.file1.txt
contig00045 length=566 numreads=19 1047 0.0
contig00055 length=524 numreads=7 793 0.0
contig00052 length=535 numreads=10 607 e-176
contig00072 length=472 numreads=46 571 e-165... (8 Replies)
I would like to write a script to extend this command to a general case:
BEGIN {s_0=0;n_0=0}{n_0++;s_0+=($51-$1)^2}END {print sqrt(s_0/n_0)}
i.e. so that
BEGIN {s_0=0;n_0=0}{n_0++;s_0+=($51-$1)^2}END {print sqrt(s_0/n_0)}
BEGIN {s_1=0;n_1=0}{n_1++;s_1+=($51-$2)^2}END {print... (3 Replies)
Hi, I am also a newbie in awk and trying to find solution of my problem.
I have one reference file 1.txt with 2 columns and I want to search other 10 files (a.txt, b.txt......h.txt each with 5 columns) corresponding to the values of 2nd column from 1.txt. If the value from 2nd column from 1.txt... (0 Replies)
Hi, I have two files: atom.txt and g.txt
atom.txt has multiple patterns but I am showing only two patterns each ending with ENDMDL:
ATOM 1 N SER A 1 35.092 83.194 140.076 1.00 0.00 N
ATOM 2 CA SER A 1 35.216 83.725 138.725 1.00 0.00 C
TER
ENDMDL
ATOM 1 N SER A 1 35.683 81.326 139.778 1.00... (11 Replies)
Hi
I am a newbie starting bash and I have a simple need to return the result of an operation from awk to bash. basically I want to use awk to tell me if "#" exists in a string, and then back in bash, i want to do an IF statement on this return in order to do other things. In my bash shell I... (2 Replies)
Hi!
I have a new problem with awk, this time I think is because I'm using it in bash and I don't know how to put the valor of the variable in awk. Here is the code:
#!/bin/bash
for i in 1 2 3 4 5
do
a=$i
b=$
awk '$1>=a&&$1<=b {print $1,$2,$3}'>asdf test... (3 Replies)
Discussion started by: florpi
3 Replies
LEARN ABOUT DEBIAN
tablix2_plot
TABLIX(1) Tablix User's Manual TABLIX(1)NAME tablix2_plot - Tablix data plotterSYNOPSIS tablix2_plot command [ options ]
DESCRIPTION Tablix is a powerful free software kernel for solving general timetabling problems. It uses a coarse-grained parallel genetic algorithm in combi-
nation with other techniques to construct sensible timetables from XML formatted problem descriptions. Tablix can run on a single host as well as
on a heterogeneous parallel virtual machine using PVM3.tablix2_plot can be used to plot various types of population convergence graphs using data in files usually named conv0.txt , conv1.txt , ...Tablix will save convergence data into these files if it was compiled with the --enable-conv option.These graphs can be useful for example to get a rough estimate of time required to solve a particular problem (note that tablix2_plot can be
safely used with files that are still written to by a running Tablix session).Graphs are plotted with gnuplot using the default output terminal (which is in most cases a X11 display). Encapsulated postscript files can be
obtained by setting EPSOUTPUT environment variable. Scalable vector graphics files can be obtained by setting SVGOUTPUT environment variable. Thecontents of these variables are used by tablix2_plot as a file name to write to.OPTIONS tablix2_plot --conv-fitness[ --scale SCALE ] [ PREFIX ] ...
Plot population convergence graph using convergence data in files conv*.txt in the current directory. One line is drawn for each computing node.
It shows the fitness value of the best timetable versus generation count.
Use the PREFIX option, if you used the -o option with Tablix. You can use more than one PREFIX option to plot multiple convergence graphs in one
window.
Use the SCALE option to adjust the vertical scale.
tablix2_plot --fit-fitness[ --scale SCALE ] [ PREFIX ] ...
Same as --conv-fitness above, except that an exponential function is also drawn on the graph using least squares fitting. This can be used to get
a rough estimate of the time required to find a solution.
The SCALE parameter is used to adjust the horizontal scale in this case.
tablix2_plot --functions[ --scale SCALE ] CONVFILE
Plot the return value of each fitness function versus generation count. Return values of mandatory fitness functions are plotted with thicker
lines.
CONVFILE must be a file with Tablix population convergence data (usually named conv*.txt ).
Use the SCALE option to adjust the vertical scale.
EXAMPLES If Tablix was started with the following command:
tablix2 -o u1_ sample.xml
then the following command plots the population convergence graph:
tablix2_plot --conv-fitness u1_
Encapsulated postscript version of the same graph can be obtained with the following command in bash shell:
EPSOUTPUT="graph.eps" tablix2_plot --conv-fitness u1_
To see which mandatory restriction is preventing Tablix from finding the solution, use the per module plot, possibly with a small vertical scale:
tablix2_plot --functions --scale 100 u1_conv0.txt
BUGS In addition to gnuplot tablix2_plot utility depends on a number of common UNIX programs (mktemp, grep, sed, awk, ...) that may not be available onall systems. The script is not currently capable of properly detecting if any required programs are missing.AUTHOR Tomaz Solc (tomaz.solc@tablix.org)
SEE ALSO tablix2(1), Tablix User's Manual, Tablix modules HOWTO, Tablix on Morphix HOWTO
Tomaz Solc 2005-09-03 TABLIX(1)