home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ornl!rsg1.er.usgs.gov!darwin.sura.net!lhc!adm!news
- From: hans@wizard.scania.se (Hans Johansson)
- Newsgroups: comp.unix.questions
- Subject: Character replacement in a ascii-file
- Message-ID: <34158@adm.brl.mil>
- Date: 19 Nov 92 16:16:02 GMT
- Sender: news@adm.brl.mil
- Lines: 20
-
- Does anyone have a generic c-source for a program that can do character
- replacement in a file?
- My problem is to scan large ascii-files (several 10's of meg up to 100)
- for special hex-values (or octal or ascii) and replace them with others.
- The total number of different charcter values to look for is about 10 and
- relace them with other character values.
-
- Please drop me a mail with source or a guide of the best way to do this.
- Have tried with 'tr', it works but rather slow.
-
- Best Regards,
-
-
- ----
- Hans Johansson Email: hans@scania.se
- Scania Data Tel: +46 8 553 81199
- Dept. SDP Fax: +46 8 553 85354
- S-151 87 SODERTALJE
- Sweden
-
-