10-29-2009
Quote:
Originally Posted by
infyanurag
Thats right,
but this could be done after the log file has been created. I want a solution that it does not come in log file when i run my conv.pl file.
Canīt you do this ?
$> conv.pl | tr -d "\15" > a.log
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have few files in unix which are in dos format. While I am copying these files, ^M, ^@, etc characters are being generated.
I tried dos2unix command in Linux and it doesn't work.
I tried sed to remove these characters but they won't go.
I came to about this 'tr' command and tried to use it... (16 Replies)
Discussion started by: chiru_h
16 Replies
2. Shell Programming and Scripting
Hi
I have a file that has semicolons in it (;) is there a way to just remove these in the file. Example
name: Joe Smith; group: Group1;
name: Mary White; group: Group2; (2 Replies)
Discussion started by: bombcan
2 Replies
3. HP-UX
Hi,
I have a very huge file and it contains some unprintable characters like ^H and ^D.
If I try to remove using cat test1.ser| tr -d '\136 110'>newfile1 it is only removing ^and all spaces in the file.
How can I remove these characters (^D ^H) and keep my spaces as it is?
Thanks &... (1 Reply)
Discussion started by: arsheshadri
1 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
Any help on how to do the following? :eek:
I have an infile as follows:
_thisishowyouwritehelloworld
_thisisalsohowyouwritehelloworld2
I want to delete the characters from "_" to "how" and be left with:
youwritehelloworld
youwritehelloworld2
I am able to do delete from a... (2 Replies)
Discussion started by: dr_sabz
2 Replies
5. UNIX for Advanced & Expert Users
hi
I have a perl script conv.pl. when i execute this file and direct i to log file I see lots of ^M characters in the log file. There is no ^M in conv.pl file. Log file is generated only after conv.pl is executed.
Please help as how to get rid of these.
This conv.pl is going to get schduled... (0 Replies)
Discussion started by: infyanurag
0 Replies
6. Shell Programming and Scripting
Dear Friends,
I want to remove text between two patters.
Problem is, it has random special characters like \ / | * ` ~ ! $ etc.
These random special characters has no fixed length. But these special characters are appearing between a fixed pattern
e.g.
DM&^%#|#!\/?CT
Expected output... (14 Replies)
Discussion started by: anushree.a
14 Replies
7. UNIX for Dummies Questions & Answers
Hi,
in a file, i have records as below:
123|62|absnb|267629
123|267|28728|uiuip
123|567|26761|2676
i want to remove the non printable characters after the end of each record.
I guess there are certain charcters but not visible.
i don't know what character that is exactly.
I used... (2 Replies)
Discussion started by: pandeesh
2 Replies
8. UNIX for Dummies Questions & Answers
I have been given a shell script that I need to amend. To do the following
extract the filename from the flag file by removing the .flag extension.
# Local variables
# Find if the flag files exists
MASK=coda_mil2*.flag
# Are there any files?
bookmark="40"
fileFound=0
ls -1... (3 Replies)
Discussion started by: andymay
3 Replies
9. Shell Programming and Scripting
bash-3.00$ cat temp.txt
./a/REA01/ces1/apps/ces_ces1_init3_aa.ear/ces.war/WEB-INF/classes/reds/common/environment.properties
./a/REA01/ces1/apps/ces_ces1_init3_aa.ear/commonproperties/hi/HostIntegration.properties... (9 Replies)
Discussion started by: bhas85
9 Replies
10. Shell Programming and Scripting
Hi there,
Im having a bit of difficulty with this one and I suspect its because of the character I want to match against maybe causing me a problem, but i wanted to remove everything up to (but not including) the first instance of '{' in a string
so for example the string that I want to... (2 Replies)
Discussion started by: hcclnoodles
2 Replies
LEARN ABOUT DEBIAN
tablix2_plot
TABLIX(1) Tablix User's Manual TABLIX(1)
NAME
tablix2_plot - Tablix data plotter
SYNOPSIS
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. The
contents 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 on
all 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)