Sorry for the duplicate thread this one is similar to the one in
https://www.unix.com/shell-programming-scripting/88132-awk-sed-script-read-values-parameter-files.html#post302255121
Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
Okay, title is kind of confusion, but basically, I have a lot of scripts on a server that I need to replace a ps command, however, the new ps command I'm trying to replace the current one with pipes to sed at one point. So now I am attempting to create another script that replaces that line.
... (1 Reply)
Hello,
Can any perl experts help me convert my sed string to perl. I am unsuccessful with this.
I have to remove this string from html files OAS_AD('Top');
I have come up with this. However the requirement is in perl.
for find in $(find . -type f -name "file1.html") ; do cat $find |... (2 Replies)
I know this script is crummy, but I was just messing around.. how do I get sed's insert command to allow variable expansion to show the filename?
#!/bin/bash
filename=`echo $0`
/usr/bin/sed '/#include/ {
i\
the filename is `$filename`
}' $1
exit 0 (8 Replies)
Hi.....
I'm using sed command for replace the words in a file
cat >test.txt
My test.txt contains
Mary had a little ham
Mary fried a lot of spam
Jack ate a Spam sandwich
Jill had a lamb spamwich
Marry had a spicy wich
$ sed 's/wich$/mirchi/g' test.txt
output is:
Mary had a little ham... (24 Replies)
Hello All,
I have something like below
LDC100/rel/prod/libinactrl.a
LAA2000/rel/prod/libinactrl.a
I want to remove till first forward slash that is outputshould be as below
rel/prod/libinactrl.a
rel/prod/libinactrl.a
How can I do that ??? (8 Replies)
Hello,
I'm working with this command which I'm having trouble understanding it:
sed -e '1,$ s/SUB/N/g' < $1 > file.txt
Where SUB stand for an special character with code in ASCII is 0x1A, notepad read it as a right arrow.
Any help will be appreciated. (5 Replies)
Hi,
I am running a script sample.sh in bash environment .In the script i am using sed and awk commands which when executed individually from terminal they are getting executed normally but when i give these sed and awk commands in the script it is giving the below errors :-
./sample.sh: line... (12 Replies)
Hi All,
I'm relatively new to Unix scripting and am trying to get my head around piping.
I'm trying to take a header record from one file and prepend it to another file. I've done this by creating several temp files but i'm wondering if there is a cleaner way to do this.
I'm thinking... (10 Replies)
Dear All,
I want to replace a value corresponding to particular variable in file using sed.
example
xValue 10.0;
I want to change its value to 19.1434 say.
xValue 19.1434;
How can I do that?
Thanks & Regards,
linuxUser_ (9 Replies)
Discussion started by: linuxUser_
9 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)