Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!dutrun!galaxy!andre From: andre@duttnph.tudelft.nl (Andre Verweij) Newsgroups: comp.unix.questions Subject: conditional substitutes Summary: How can I program a script for conditional substitutes ? Keywords: awk, sed, scripts Message-ID: Date: 2 Apr 91 15:11:07 GMT Sender: news@dutrun.UUCP Lines: 17 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