Sponsored Content
Full Discussion: SED and replacing Txt Bullet
Top Forums Shell Programming and Scripting SED and replacing Txt Bullet Post 302336277 by rubin on Tuesday 21st of July 2009 06:04:10 PM
Old 07-21-2009
Quote:
Originally Posted by NDxiak
...
Actually VI editor shows this sign: ¥

But it doesn't work - I'm sure that SED just doesn't understand bullet ...

That's right ..., try something different instead:

Code:
awk '{gsub("\x95","X")}1' file

Code:
perl -pe 's/\x95/X/g' file

____
EDIT: The hex code for the bullet is \x95

Last edited by rubin; 07-21-2009 at 09:49 PM.. Reason: xA5 -> x95
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed to read x.txt and grep from y.txt

How would I write a command(s) to read from a file (list) that looks like this: 29847374384 and grep from a second file (list) that looks like this: 29847374384, jkdfkjdf,3833,ddd:confused: (1 Reply)
Discussion started by: smellylizzard
1 Replies

2. AIX

Bullet proof of user history activity

Hi, is there a bullet proof of getting the history of all commands entered by a user on a specific server and idealy with the times ? We have several servers. Therefore we can simply logon to one and do RLOGINS to go to others. We always first logon to servers with our personnal login and then... (4 Replies)
Discussion started by: Browser_ice
4 Replies

3. Shell Programming and Scripting

sed to cp lines x->y from 1.txt into lines a->b in file2.txt

I have one base file, and multiple target files-- each have uniform line structure so no need to use grep to find things-- can just define sections by line number. My question is quite simple-- can I use sed to copy a defined block of lines (say lines 5-10) from filename1.txt to overwrite an... (3 Replies)
Discussion started by: czar21
3 Replies

4. UNIX for Dummies Questions & Answers

replacing a string with another string in a txt file

Dear all, I have a file like below. I want to replace all the '.' in the 3rd column with 'NA'. I don't know how to do that. Anyone has an iead? Thanks a lot! 8 70003200 21.6206 9 70005700 17.5064 10 70002200 . 11 70005100 19.1001 17 70008000 16.1970 32 70012400 26.3465 33... (9 Replies)
Discussion started by: forevertl
9 Replies

5. Shell Programming and Scripting

sed inside sed for replacing string

My need is : Want to change docBase="/something/something/something" to docBase="/only/this/path/for/all/files" I have some (about 250 files)xml files. In FileOne it contains <Context path="/PPP" displayName="PPP" docBase="/home/me/documents" reloadable="true" crossContext="true">... (1 Reply)
Discussion started by: linuxadmin
1 Replies

6. Shell Programming and Scripting

sed -Replacing file path within .txt file

Hi, I am trying to use sed to replace a file path within all the .lay (.txt) files in a folder. I feel that this should be easy but I can't get it to work no matter what i try. I'm using cygwin. For a .txt file containing the below line I want to replace this file path with a new one. ... (1 Reply)
Discussion started by: carlr
1 Replies

7. Shell Programming and Scripting

Replacing .dat.gz to .txt.gz in filename

Hi, I tried below method; mv -v /oracle1/scr/tilki/willsendtilkiNew/VOICE-MO_$nfname.gz \ $(echo /oracle1/scr/tilki/willsendtilkiNew/VOICE-MO_$nfname.gz | tr 'dat' 'txt'); nfame variable has the string "dat" . I need to rename files like below; ASIS: 20140902103700_100319.dat.gz... (8 Replies)
Discussion started by: snr_silencer
8 Replies

8. Shell Programming and Scripting

Awk, sed, shell all words in INPUT.txt find in column1 of TABLE.txt and replce with column2 in

Hi dears i have text file like this: INPUT.txt 001_1_173 j nuh ]az 001_1_174 j ]esma. nuh ]/.xori . . . and have another text like this TABLE.txt j j nuh word1... (6 Replies)
Discussion started by: alii
6 Replies

9. Shell Programming and Scripting

Linux Commands needed for replacing variable number of spaces with a single , in a txt file

Hi I want to read a text file and replace various number of spaces between each string in to a single "," or any other character .Please let me know the command to do so. My input file is a txt file which is the output of a SQL table extract so it contains so many spaces between each column of the... (2 Replies)
Discussion started by: Hari Prasanth
2 Replies
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)
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy