conditional substitutes

Andre Verweij andre at duttnph.tudelft.nl
Wed Apr 3 01:11:07 AEST 1991


I try to make a script for file conversion.
the input file looks like :

	Normal text, where comma's can appear.
	Label
	0	12,34
	2	1,23

The problem is that I want to have the comma's after the Label
be replaced with spaces. In vi you can do a search for Label, 
followed by .,$s/,/ /g but is this also possible in a shell script.
In awk there should be a way to have both spaces and comma's as a 
field seperator.

Who knows an easy solution ?

Andre



More information about the Comp.unix.questions mailing list