From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98324230113038.tru64-unix-managers.marc@archive.invalid> From: "Sweatt, Wayne" Date: Tue, 27 Feb 2001 02:50:42 +0000 To: tru64-unix-managers Subject: What is the best way to replace strings in binary files? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98324230113038 Dear DUGurus, I haven't really tried to do this before, but would like to replace a string in a binary file. What is the best tool to use for this? Just for the curious, and Oracle DBA types: I was going to do something unconventional and change the alpha string in an Oracle export file that denotes the tablespace name and change it from "SYSTEM" to "USERS". Looks like sed won't do it. I know of the traditional method of changing tablespaces by dropping the old one, recreating the table in the desired tablespace and then importing the table with ignore=y...BUT, this seems so much simpler to do, since I could actually perform this on multiple tables at one whack. I could do a user export, change all of the 'TABLESPACE "SYSTEM"' strings to call out the desired "USERS" tablespace and be done with it. Should work , right? Thanks! Wayne