I need to split a file into n separate files of about the same size. The way the file will be split is at every nth row, starting with the first row, that row will be cut and copied to it's corresponding new file so that each file has unique records. Any 'leftovers' will go into the last file. e.g.... (4 Replies)
Hi all,
I have a list of xml file. I need to split the files to a different files when see the <ko> tag.
The list of filename are
B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml
B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml
B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml
... (3 Replies)
I know this is a simple matter, but I'm new to this.
I have a shell script that calls a sed script from within it. I want the output of the shell script to be based on the input file I pass as an argument to the original script. In other words...
./script.sh file.txt
(script.sh calls sed... (2 Replies)
Hi,
I need to split files based on text:
BEGIN DSJOB
Identifier "LA"
DateModified "2011-10-28"
TimeModified "11.10.02"
BEGIN DSRECORD
Identifier "ROOT"
BEGIN DSSUBRECORD
Owner "APT"
Name "RecordJobPerformanceData"
Value "0"
... (16 Replies)
I have a source file that contains multiple XML files concatenated in it. The separator string between files is <?xml version="1.0" encoding="utf-8"?>. I wanted to split files in multiple files with mentioned names. I had used a awk code earlier to spilt files in number of lines i.e.
awk... (10 Replies)
I have below script which does splitting based on a different criteria. can it be amended to produce required result
SrcFileName=XML_DUMP
awk '/<\?xml version="1\.0" encoding="utf-8"\?>/{n++}
n{f="'"${SrcFileName}_"'" sprintf("%04d",n) ".txt"
print >> f
close(f)}' $SrcFileName.txt
My... (3 Replies)
Dear unix forum,
could I output a list of five books with their file name titles into one file?
In order o output all the contents of all the files with their file names there was: find . -type f | while read x; echo -e "\n$x";cat "$x";done > бетховен.txt
In spite of them being successively... (5 Replies)
Hello,
I am trying to print searched multiple keywords in multiple files.
It is almost okay with the code but the code puts filename in front of each line.
How may I get rid of it?
-grep -A1 'word1' *.txt | grep -A1 'word2' | grep -A1 'word3'
I expect:
Real outcome:
How may I... (3 Replies)
Hi everyone :)
I have a file "words.txt" containing hundreds of lines of text. Each line contains a slogan.
Using the code below i am able to generate an image with the slogan text from each line.
The image filename is saved matching the last word on each line.
Example:
Line 1: We do... (2 Replies)
How can I get the name of the default output filename from curl using the argument -O?
Using -o one can choose a filename. I want to get the name of the original file, but don't understand how to get it.
curl -o filename http://www.website.com
curl -O http://www.website.com
The... (3 Replies)
Discussion started by: locoroco
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)