From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079079016205.tru64-unix-managers.marc@archive.invalid> From: Mark.Cuthbert () yorkshirewater ! co ! uk Date: Wed, 20 Oct 1999 10:56:12 +0000 To: tru64-unix-managers Subject: Text manipulation -Howto X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079079016205 Hi guys, I could do with some help with a script to manipulate a data-file so I can substitute values "@" for "" (null). The following is example output from dumping a database, where the dump command does the opposite, ie where tha value is null in the database the output has an @. 2|10158086|34|21502169000342X|AU6|1|19950313|13/03/95,00001|C|1|94000000|@| Y||@|@|19691231|0|@| 2|10158086|35|486191270001536|AU6|1|19950313|13/03/95,00001|C|1|94000001|@| Y||@|@|19691231|0|@| 2|10158086|36|192070110001719|AU6|1|19950313|13/03/95,00001|C|1|94000002|@| Y||@|@|19691231|0|@| 2|10158086|37|372011910003150|AU6|1|19950313|13/03/95,00001|C|1|94000003|@| Y||@|@|19691231|0|@| 1|10158086|80781|520449921000000|@|@|19950320|20/03/95,00237,SCAN & DES|C|1|94080698|@|Y||@|@|19691231|0|@| 1|10158086|80782|206017190001215|Z|@|19950420|YORK,20/04/95,0003|C|1|940806 99|@|Y||@|@|19691231|0|@| I guess this should be simple using sed/awk/perl etc. but I have not done much text manipulation under UNIX. One problem is that it may not be the same field that has an @ in each record Sorry for seeming dumb! Regards Mark Cuthbert Yorkshire Water UK The information in this e-mail is confidential and may also be legally privileged. The contents are intended for recipient only and are subject to the legal notice available at http://www.keldagroup.com/email.htm Kelda Group plc and its subsidiaries, UK Registered in England and Wales No 2366627